Add a data field motherMaidenName to Person. Write an accessor and a modifier method for this data field. Modify class toStri ng and class equal s to include this data field. Assume two Person objects are equal if they have the same ID number and mother's maiden name. Write javadoc tags for the method.
Write a method compareTo that compares two Person objects and returns an appropriate result based on a comparison of the ID numbers. That is, if the ID number of the object that compareTo is applied to is less than (is greater than) the ID number of the argument object, the result should be negative (positive). The result should be 0 if they have the same ID numbers. Write javadoc tags for the method.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here