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

Linked-List Implementation

 

In this section we will examine a linked-list implementation of stacks that makes use of the LinkedList data structure developed in Chapter gif. Program gif introduces the StackAsLinkedList class. The StackAsLinkedList class is a concrete class that extends the AbstractContainer class introduced in Program gif and implements the Stack interface defined in Program gif.

   program5452
Program: StackAsLinkedList fields.




next up previous contents index

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