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

Next, write a Bird class for tracking banded birds by ID numbers. Bird comparisons will be based on band numbers.

StoreItem Class

Write a StoreItem class to keep track of items in a store. Decide what store items should be ordered based on. (For example, name? Price?)

Recipe Class



Copyright Alyce Faulstich Brady, 2009, 2016, 2019.