keko2005
04-05-2005, 01:20 AM
hey guys, a quick question, we are learning abstract classes and implementing interfaces. now for our 3rd project we have to use this. i know that you have to overwrite the equals method, and the compareTo method in the comparable interface, im not sure how though. heres the question.
You must modify the Customer class you submitted last time, so that it overrides the equals method from
the Object class, and the compareTo method from the Comparable interface. Equality should be based on
the Customer’s ID number and name. Comparison should be performed on the basis of last name, then first
name, and then ID number.
You must modify the Customer class you submitted last time, so that it overrides the equals method from
the Object class, and the compareTo method from the Comparable interface. Equality should be based on
the Customer’s ID number and name. Comparison should be performed on the basis of last name, then first
name, and then ID number.