In this lab, you have to implement Patron class which is composed of a Name class. The Patron class should provide a method to compare itself with another Patron object.
The Patron object compares two patrons by their names. So Patron object should delegate the responsibility of comparing two Names to the Name class. The Name class in turn delegates the responsibility to String class for comparing two strings.
In the above two cases the primary objective is to compare 2 objects. This behaviour is modelled by the Comparable interface provided by java. Patron and Name class should implement Comparable interface