Cover Data Structures and Algorithms with Object-Oriented Design Patterns in Java
next up previous contents index

Array Implementation

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

   program9786
Program: SortedListAsArray class.

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




next up previous contents index

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