Final answer:
The online address book in C++ requires the creation of classes addressType, extPersonType, and addressBookType, each handling different data and functionalities like storing and printing addresses, managing personal information, and processing up to 500 entries with various search and print capabilities.
Step-by-step explanation:
Designing an Online Address Book using C++
In C++, we can design an online address book by creating several classes that handle different aspects of the address book's functionality. The addressType class will encapsulate the details of a street address including street, city, state, and zip code, providing functions to store and print the address. Constructors will ensure that these data members are properly initialized. The extPersonType class will combine the capabilities of earlier defined classes (personType, dateType) with addressType, adding a data member to classify a person as a family member, friend, or business associate, and one to store phone numbers. Finally, the addressBookType class, derived from an array-based list class (arrayListType), is designed to handle up to 500 entries, providing functionality to:
- Load data from a disk
- Search for a person by last name
- Print address, phone number, and date of birth
- Print names for birthdays within certain conditions
- Print names based on relationship status
- Print names within a range of last names