TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: BENJAMIN L MCGEE
from: KURT KUZBA
date: 1997-05-03 11:16:00
subject: OOP

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.