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

Instance Attributes

Just like the StackAsLinkedList class, the implementation of the QueueAsLinkedList class requires only one instance attribute--_list. The _list instance attribute is an instance of the LinkedList class. It is used to keep track of the elements in the queue.


next up previous index

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