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

Array Implementation

 

This section presents an array-based implementation of ordered lists. Program gif declares the ListAsArray class. The ListAsArray class is a concrete object class and as such must provide implementations for all of the interface member functions which have been declared as pure virtual functions in the base classes from which the ListAsArray class is derived. The prototypes have been omitted from Program gif since they have all been given earlier.

   program9390
Program: ListAsArray Class Definition




next up previous contents index

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