Using Classes
Using Classes
races, religions, and dates of birth of classmates. Your program should be able to handle a maximum of 300 entries.
a. Define a class addressType, that can store a street address, city, state and zip code. Use the appropriate functions to print and store the address. Also use constructors to automatically initialise the data members. b. Define a suitable class extPersonType using the class personType, the class dateType, and the class addressType. Add data members to this class to include the gender, matric number, race and religion. Also, add a data member to store the phone number. Add (or override) the functions to print and store the appropriate information. Use constructors to automatically initialise the data members. c. Derive the class addressBookType from the class arrayListType, so that an object of type addressBookType can store objects of type extPersonType. An object of type addressBookType should be able to process a maximum of 300 entries. Add necessary operations to the class addressBookType so that the program should perform the following operations.
i. Load the data into the address book from a file. ii. Search for a person by the matric number. iii. Print the details of a given person. iv. Print the matric numbers, names, and date of birth of the people whose birthdays are in a given month or between two given dates. v. Print the names of all the people with the same status, such as gender, race, and state.