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

Abstract Searchable Containers

Program gif introduces an abstract class called AbstractSearchableContainer. It is intended to be used as the base class from which concrete searchable container realizations are derived. As illustrated in Figure gif, the AbstractSearchableContainer class extends the AbstractContainer class (defined in Program gif) and it implements the SearchableContainer interface (defined in Program gif).

   program4811
Program: AbstractSearchableContainer class.


next up previous contents index

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