home *** CD-ROM | disk | FTP | other *** search
- Instead of creating a brand new class for each implementation of
- stacks, you could have a single base class that defined the
- standard interface that is the same for all stacks, regardless of
- how they are implemented. In this example, the class Stack is
- such an abstract base class. All of its member functions are pure
- virtual functions that will be given definitions in the derived
- classes.
-