Question: C++ Develop a user defined data type : extPersonType by the following procedures. - Define a class, addressType , that can store a street address,

C++

Develop a user defined data type : extPersonType by the following procedures.

- 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 initialize the member variables.

- Define a class, personType, that can store the first name and the last name of a person. Use the appropriate functions to print and store the first and the last name. Also, use constructors to automatically initialize the member variables.

- Define a class, dataType, that can store the day, the month, and the year of a date. Use the appropriate functions to print and store the day, the month, and the year. Also, use constructors to automatically initialize the member variables.

- Define a class extPersonType. The class is a derived class from the above classes. The class adds a member variable to classify the person as a family member, friend, or business associate. Also, the class adds a member variable to store the phone number. Moreover, the class adds (or override) functions to print and store the appropriate information. Use constructors to automatically initialize the member variables.

- Write a C++ program to test your design.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!