Question: Course: Data structures and algorithm b. A constructor that is passed both a first and a last name. c. get() and set() methods for the
Course: Data structures and algorithm
b. A constructor that is passed both a first and a last name.
c. get() and set() methods for the instance variables.
d. A toString() method.
e. An equals() method. Two instances are equal if they have the same first and last names.
f. A compareTo() The method should compare using normal alphabetical order. Your method should first compare last names. If two instances have the same last names then the first names should be compared.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
