Logo Data Structures and Algorithms with Object-Oriented Design Patterns in C++
next up previous contents index

Array Implementation

This section describes an array-based implementation of stacks. Program gif 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 gif for the sake of brevity.

   program5811
Program: StackAsArray Class Definition




next up previous contents index

Bruno Copyright © 1997 by Bruno R. Preiss, P.Eng. All rights reserved.