October 1997
Intermediate to advanced
800 pages
20h 48m
English
Many objects require more than one class to implement their inside and outside views. In this situation, multiple classes must somehow work together to provide access to what one class needs from another. What is the proper way to design these classes? To investigate, let's create a List class (a linked list data structure) that stores character strings. This initial design of List is the basis for improved versions that appear in subsequent chapters. A second class (Node) provides some of the implementation for the List class. Figure 5.2 shows the arrangement.

Node objects contain pointers ...