|
Data Structures and Algorithms
with Object-Oriented Design Patterns in Python |
This section describes an array-based implementation of stacks.
Program
introduces the StackAsArray class.
The StackAsArray class is a concrete class
that extends the abstract Stack class defined in Program
.

Program: StackAsArray __init__ and purge methods.