Question: Consider a class Person that represents an entry in an address book. Its attributes are: The first name of the Person The last name of

Consider a class Person that represents an entry in an address book. 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 objects instance variables

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

Write a method heading for each method - a description of the method 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 some java statements that test the class Person (methods). Create at least four objects of type Person and write the appropriate code to set values for each object.

The output of the program should output each of the objects with their initial values and show output on all the objects being compared to each other and if they are equal or not, and what components are equal. Two objects are considered equal if all components are equal.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!