BL> DM> Right. OOP is a concept. An OOPL is a language. :-)
BL> DM> For example, a car.
BL> That's all well and good if you like driving, but what if
BL> you wanted to extract all the functions from a C program?
bl>....
Then you would define those functions according to the data
with which they were designed to operate.
For your string data, you would design a string class.
For your numerical data, you would design a number class.
From base classes such as these, you could derive more complex
classes, allowing you to inherit the previously designed
functionality in your new classes. The purpose of the functions
should determine the class to which they belong. A class whose
private members are all integers will gain no utility by being
derived from a class designed for using floating points, but a
class handling both floating points and integers might well have
multiple inheritances from classes designed for both.
Classes are, in this case, a lot like libraries. You still have
the ability to have your own functions, however, and have
functions of the same name which use different data types.
> ] Opossums on the Information Rustic Road.....................
---
---------------
* Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750)
|