Cover 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.




next up previous contents index

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