This chapter introduces linked lists.
In this chapter, the linked lists are created in a main()
method.
This is not how linked lists are usually created,
but hopefully makes it easier to see what is going on.
The next chapter shows a LinkedList
object which
encapsulates the operations of a linked list.
Can an object contain a reference to another object?
Can an object contain a reference to another object of the same class as itself?