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

Array Implementation

This section describes an array-based implementation of stacks. Program gif introduces the StackAsArray class. The StackAsArray class is a concrete class that extends the AbstractContainer class introduced in Program gif and implements the Stack interface defined in Program gif.

   program5291
Program: StackAsArray fields.