Linked List
•
In the Procedural Paradigm a linked list consisted of:
–
A pointer to the head of the list
–
Nodes (in dynamic memory i.e. the heap) containing data andadditional next pointers
–
Modules that would perform a variety of functions as needed:add (in order), traverse, find, delete, etc.
•
In the Object Oriented Paradigm a linked list willconsist of a class which contains:
–
The head pointer (globally scoped in the class)
–
Methods to perform the function listed above
•
We will also need a class to hold the nodes. We’ll startwith that...