Data Structures and Algorithms
with Object-Oriented Design Patterns in C#|
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.