Data Structures and Algorithms with Object-Oriented Design Patterns in C#
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.

   program5499
Program: StackAsLinkedList fields.




next up previous contents index

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