Inally write an application class to allow the user to


Implement a class called ShortAddress that has the following attributes: firstName, secondName, and phoneNumber.

Then implement a class called FullAddress that inherits the above attributes while adding the attributes (int) houseNumber (simply 1, 2, ... etc. - i.e. no 1a or 3b's allowed), street1Name, street2Name and cityName. Don't forget to use the keyword super in the constructor.

NOTE: ONLY INTEGER HOUSE NUMBERS ARE ALLOWED. IF USER ENTERS CHARACTERS AN ERROR MESSAGE MUST APPEAR AND PROMPT FOR A NEW INPUT.
PHONE NUMBERS MUST BE RESTRICTED TO A MINIMUM OF 8 - MAX 12 NUMBERS.

Finally write an application class to allow the user to input an address details and then give the user the choice of viewing the short address details or the long address details. This means your final answer should have a minimum of 3 classes for the application

- you may use more if you are including utility classes.

Attachment:- Address.zip

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Inally write an application class to allow the user to
Reference No:- TGS01251142

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)