Mini-Lab: Using the Comparable Interface



Getting Started

Student Class

Comparisons of students will be based on names; in other words, if student A's name comes before student B's name lexicographically, then student A will come before student B. We will also assume that student names are unique (no two students have exactly the same name).

Bird Class

Imagine writing a Bird class for tracking banded birds by ID numbers. Bird comparisons will be based on band numbers.

StoreItem Class

Decide what what store items should be ordered based on. (For example, name? Price?)

Recipe Class



Copyright Alyce Faulstich Brady, 2009, 2016.