Java Classes
SuperClass1). 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. Including utility classes. Use exception handling to make the program robust. This section contains the following elements: The projects only use JDK and an editor (textPad, notepad, notepad++). Use GUI based using JOptionPanes. Write the source code for each class in a separate file, which must have the same name as the class name together with the extension .java, names commence with a capital letter. Do not use Java packages to package the classes, use APIs provided by Java SDK. Give some appropriate introduction and discussion of your answers. Comments the code of the program. Project must have at least 4 classes for each question. Do not use code generator. References with Harvard style at least 3 Academic Articles or books
10 years ago
Purchase the answer to view it

- java_classes_1.txt
- java_classes_2.txt
- java_classes_3.txt
- java_classes_4.txt