Menu

(Solved) : Consider Class Person Represents Entry Address Book Attributes First Name Person Last Name Q32813838 . . .

Consider a class Person that represents an entry in an addressbook. Its attributes are:

The first name of the Person

The last name of the Person

The email of the person

The telephone number of the person

It will have methods to:

Appropriate mutator methods

Appropriate accessor methods

An equals method to test if two objects are equal

A method to output the values of each object’s instancevariables

Write a class heading for your class – a class description,author and version

Write a method heading for each method – a description of themethod and any parameters and return values

Write preconditions and postconditions for each method

Write a heading for your instance variables

Create another class called PersonAddressDemo and write somejava statements that test the class Person (methods). Create atleast four objects of type Person and write the appropriate code toset values for each object.

The output of the program should output each of the objects withtheir initial values and show output on all the objects beingcompared to each other and if they are equal or not, and whatcomponents are equal. Two objects are considered equal if allcomponents are equal.

Expert Answer


Answer to Consider Class Person Represents Entry Address Book Attributes First Name Person Last Name Q32813838 . . .

OR