
Lesson 13-4: List of Classes
Array-Based Lists | 343
Name __________________________________________ Date _______________________
Section _________________________________________
In the unsorted list, no comparison of list items was needed. In the sorted list, we had to
compare list items to find where in the list the new item must go. Because the items in the
sorted list were strings, we were able to compare them using the relational operators.
In this lesson, you are asked to reimplement the SortedList specification so that the list
can contain items of class Name. The specification and implementation of class Name are on the
disk.
Exercise 1: Which ...