Data Structures and Algorithms with Object-Oriented Design Patterns in Python
next up previous 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 abstract Stack class defined in Program gif.

   program5243
Program: StackAsArray __init__ and purge methods.




next up previous index

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