KS> What the heck is object orientated programing?
KS> Can anyone explain in English?
Yes, there are many books in English, I'd recommend you to look for
authors like Grady Booch, Robert Martin, Jim Rumbaugh, Bertrand Meyer
and many others.
Object-orientation is about objects, not about functions, modules etc.
as in "classical" software development. An object is a "thing" that is
characterized by a state (element of a well-defined set of legal
states), a behavior and an identity. Classes are groups of objects
that share state space and behavior.
Key concepts of object-orientation are:
- inheritance: you can derive a class from another class, the base
class objects belonging to the derived class inherit the state space
and the behavior from the base class.
- polymorphism: there are variables that can stand for objects of a
type that is not known at compile time.
- late binding: there are function calls that can only be resolved at
runtime.
There's a lot more to be said, but this isn't the right place for
that.
KS> What the heck is the differnce between C and C++?
First, C++ is "a better C". C++ improves on some of C's weak points:
there are name spaces to prevent pollution of the global name space,
there's better safety, there is function and operator overloading etc.
Second, C++ has some extensions that allow you to do object-oriented
programming.
Thomas
---
þ MM 1.0 #0113 þ A seminar on Time Travel will be held two weeks ago.
---------------
* Origin: McMeier & Son BBS (2:301/138)
|