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

   program5331
Program: StackAsArray fields.




next up previous contents index

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