Topic 7 - Stack: A Linked Implementation Flashcards
1
Q
In the LinkedStack class, the nodes in the linked list are represented by?
A
the LinearNode class.
2
Q
What does the attribute “top” refer to in the LinkedStack class?
A
a reference to the first node ie. a reference to the linked list
3
Q
What type is the attribute “top”?
A
LinearNode