Question: Java Program Problem 1: Address Book Using classes and inheritance, design an online address book to keep track of the names, addresses, phone numbers and
Problem 1: Address Book Using classes and inheritance, design an online address book to keep track of the names, addresses, phone numbers and birthdays of family members, friends and business associates. Your program should be able to handle a maximum of 500 entries Define the following classes: Class Address to store a street name, city, state and zip code. .Class Date to store the day, month and year. .Class Person to store a person's last name and first name Class ExtPerson that extends the class Person and uses the classes Address and Date to store the person's address and date of birth. The class ExtPerson also stores the phone number and the person's status (e.g., family, friend or business). Class AddressBook to store a list of all your contacts' information using the ExtPerson class. Hint: Use an array of ExtPerson objects). The program should perform the following operations: Load the data into the address book from an input file. A sample input is given to you in the file "data.txt" Search for a person by last name. Print the information of a given person. Print the names of the persons whose birthdays are in a given month. Print the names of the persons with a particular status, eg. family, friend, business. Sort the address book by last name in ascending order. For all the above classes: Define the appropriate constructors to construct the objects and initialize the data members Define the toString) methods to print the appropriate information. Define the appropriate methods to perform the needed operations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
