This section describes an array-based implementation of stacks. Program gives the declaration of the StackAsArray class. The StackAsArray class is a concrete object class. Therefore, its definition provides an implementation for all of the inherited member functions which are pure in the base class definition. Most of the function prototypes have been elided from Program for the sake of brevity.
Program: StackAsArray Class Definition