consider a class personaddress that represents an entry in an address book its attributes are

Consider a class PersonAddress that represents an entry in an address book. Its attributes are

• The first name of the person

• The last name of the person

• The e-mail address of the person (how can me make sure this is an e-mail address)?

• The telephone number of the person (how can me make sure this is a properly formatted phone number?)

It will have methods to

• Access each attribute

• Change the e-mail address

• Change the telephone number

• Test whether two instances are equal based solely on name

a. Write a method heading for each method.

b. Write preconditions and postconditions for each method.

c. Write some Java statements that test the PersonAddress class. You must call this class PersonAddressTest.

d. Draw a class diagram.

e. Implement the class.

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.