Question
AddressBook Class (ADT) *In Java I want you to use Inheritance and Composition in this program. You DO NOT have to include Exception Handling. Your
AddressBook Class (ADT) *In Java
I want you to use Inheritance and Composition in this program. You DO NOT have to include Exception Handling.
Your assignment is to design an online address book that contains the functionality described below. I want you to be able to process 10 entries and implement a menu system to perform the required program operations:
("Welcome to the address book program.");
("Choose among the following options:");
("1: To see if a person is in the address book");
("2: Print the information of a person");
("3: Print the names of person having birthday in a particular month");
("4: Print the names of persons having a particular status");
("5: Print the address book");
("9: Terminate the program");
I want you to make ALL of the data members in each class PRIVATE. I will specifically be looking for your use of constructors to initialize the data members. Remember that the keyword super must be used to call a base class constructors and/or methods from a derived class.
In addition to the implementing class (which will create an object of type AddressBook), you will be creating the following classes.
Address -street number, city, state, zip
ExtPerson (derived from Person AND is composite)- char status, Address address
Person-String name, int age, Date date of birth
Date-month, day, year
AddressBook (composite class)-main method, array of Person
Testing:
Make sure you are testing every method you wrote.
Deliverables:
1.Your source code from ALL the classes you create and/or use. I also want a UML diagram for EVERY class (which can be used to design your solution).
2.Screen prints of your test scenarios. 3.Include comments
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started