Data Structures and Algorithms with Object-Oriented Design Patterns in Python
next up previous index

Array Implementation

The SortedListAsArray class is introduced in Program gif. The SortedListAsArray class extends the OrderedListAsArray class introduced in Program gif and it also extends the abstract SortedList class defined in Program gif.

   program9840
Program: SortedListAsArray class.

There are no addition instance attributes required to implement the SortedListAsArray class. That is, the instance attributes provided by the base class OrderedListAsArray are sufficient.




next up previous index

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