On 04-08-97 Kevin Sheetz wrote to All...
KS> What the heck is object orientated programing? What the heck is the
KS> differnce between C and C++? Can anyone explain in English?
While I'm just learning how to use C++ myself and am by no means an
expert on the subject. I have started to make some headway in my
basic understanding of C++. Here's what I have learned so far...
Correct any of this if it is wrong please.
"Object Oriented Programming" is mostly hype first of all. I have
never seen a clear definition of object oriented programming. If it
was a tangible thing I think somebody would be able to provide a basic
description of it. As far as I can tell it is simply a way of protecting
data by making sure that only code within an "object" can access the
data that is within the same "object". I'm sure there are other features
that I'm missing but as nobody seems willing to volunteer anything other
than, "What's object oriented programming? That's a very complex
question." I'll stick with the above.
Classes are the basic building blocks of C++ programs just as functions
are the basic building blocks of C programs.
Classes are just like structs EXCEPT classes can contain code as well as
data.
You can de/allocate classes just as you can de/allocate structs.
If you understand classes, you understand alot of C++.
*Black Holes happened when God divided by Zero
blm
--- FLAME v1.1
---------------
* Origin: Purgatoire BBS, 719-846-0140, Trinidad, CO, V.34 (1:15/7)
|