Re: Explane please....

new topic     » goto parent     » topic index » view thread      » older message » newer message

At 03:19 PM 3/10/99 PST, you wrote:
>Hy,
>
>Can someone explane (in a normal way, so everybody can understand it)
>what are these things :
>
>object-orienting things



Object-orientation is a way of modelling data and programs after objects in
the real world, as opposed to modular or structured programming.  Objects
are pretty much everywhere.  Dogs, cats, people, trees, etc.  These objects
have certain properties (such as hair color, height, width), as well as
actions.  Dogs run, people talk, trees drop their leaves, and so on.
In addition, certain objects can be grouped.  For instance, you've always
seen ads that say "A Saturn is like no other car you've driven before".
That's a lie.  Saturns, Fords, Chevys, etc, can all be grouped under an
_abstract_ class called car. Because of this, we don't have to relearn
driving when we change from a Chevrolet to a Ford.
The advantage of this in programming is that objects used in one program
can be used, modified, even derived from other classes.  An object that is
thoroughly tested does not have to be modified that much, if at all, when
working in the next program.  Structured programming, on the other hand, is
interrelated because it's not so much concerned with the data objects as it
is with the flow.  The flow has to be modified with each program.  Think of
it as having a general purpose microwave as opposed to having a microwave
that can only cook one batch of nachos.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu