Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

5. How do instructional objectives help learning to occur?

Answered: 1 week ago

Question

4. Help trainees set challenging mastery or learning goals.

Answered: 1 week ago