home *** CD-ROM | disk | FTP | other *** search
- A program may use several classes. They may interact only with
- the client code, or they may interact with each other through
- their defined interfaces. A new class can also be derived from
- one or more existing classes. C++ supports this form of code
- reuse through inheritance. For example, a class defined for bank
- accounts could be used as a base for derived classes defined for
- savings accounts and checking (chequing) accounts.
-