home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH13 / A13148.TXT < prev    next >
Encoding:
Text File  |  1993-09-21  |  522 b   |  9 lines

  1. As this example demonstrates, there is more to inheritance than
  2. base classes and derived classes sharing members.  Inheritance
  3. lets you create a single class that defines a public interface for
  4. all of its derived classes.  As long as these derived classes keep
  5. this interface, the client code can manipulate objects of these
  6. classes without regard to their exact type.  The implementations
  7. of these derived classes can be changed, and new derived classes
  8. can be added, all without changing any of the client code.
  9.