rob at jam.rr.com
Sun Jun 24 15:15:49 CEST 2001
zoodoo <zoodoo at infantry.com> wrote in message
news:GyiZ6.2264$Bp1.299293 at newsread2.prod.itd.earthlink.net...
> What's the concept/logic behind object-orientation? What is it suppose to
Different people will answer the question in somewhat different ways, but
object-oriented programs use "objects" with "behaviors" instead of just
procedures. The video game "The Sims" provides some great examples. You can
program a general class of objects, such as "human" with some built-in
behaviors, such as "talk", "walk", etc.
You can call up instances of "human", with special distinctions. For
instance, you might want to summon up a human with no legs. This instance of
human would be able to talk, but not walk. And you could add specialized
behaviors, such as "give birth", "jog", or "grok unix".
I'm just a hobbyist, so some of the gurus here will doubtless give a far
better answer than this one, but it's a start.
More fun than underwater frisbee!
More information about the Python-list