home *** CD-ROM | disk | FTP | other *** search
- Often, several types of objects have common features, or are
- subgroupings of a more general data type. In C++ you can reuse
- code and group the objects into a hierarchy of classes. Classes
- that are built on other classes inherit their characteristics and
- may also have additional characteristics. For example, all bank
- accounts have an identifying number and a balance. However,
- savings accounts also have an interest rate, while checking
- (chequing) accounts may have a service charge.
-