[Instant Help From 10$/Pg] Allowed Street1Name

[Instant Help From 10$/Pg] Allowed Street1Name

 

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

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

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.

 

Looking for a Similar Assignment? Let us take care of your classwork while you enjoy your free time! All papers are written from scratch and are 100% Original. Try us today! Use Code FREE15