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

  1. Instead of creating a brand new class for each implementation of
  2. stacks, you could have a single base class that defined the
  3. standard interface that is the same for all stacks, regardless of
  4. how they are implemented.  In this example, the class Stack is
  5. such an abstract base class.  All of its member functions are pure
  6. virtual functions that will be given definitions in the derived
  7. classes.
  8.