java class
Implement a class called ShortAddress that has the following attributes: firstName, secondName, and phoneNumber.
Now 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.
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.
Use exception handling to make the program robust.
4 years ago 1
other Questions(10)
- science questions
- Respond to my classmates response to the question posted
- Impacts of Trade Agreements
- for Dr.Loizeaux only
- A comparison of Wu Zhao of China and Pharaoh Cleopatra of Egypt
- ACC305 Wk 2 E4-16 - Bluebonnet Bakers
- Counterintelligence DB2
- statistics
- acc 401 quiz 3 ch 4
- answer questions from the description box.