Data Structures and Algorithms
with Object-Oriented Design Patterns in Java
The StackAsArray class contains one field--an array of Objects called array.
In addition, the StackAsArray class inherits the count
field from the AbstractContainer class.
In the array implementation of the stack,
the elements contained in the stack occupy positions
0, 1, ...,
of the array.
Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.