Question: C++ 7. PersonData and CustomerData Classes Design a class named PersonData with the following member variables e lastName . firstName . address e city e

 C++ 7. PersonData and CustomerData Classes Design a class named PersonData
C++

7. PersonData and CustomerData Classes Design a class named PersonData with the following member variables e lastName . firstName . address e city e state . zip e phone member variables Write the appropriate accessor and mutator functions for these member variables. Next, design a class named CustomerData, which is derived from the PersonData class. The CustomerData class should have the following member variables: . customerNumber e mailingList The customerNumber variable will be used to hold a unique integer for each customer. The mailingList variable should be a bool. It will be set to true if the customer wishes to be on a mailing list, or false if the customer does not wish to be on a mail- ing list. Write appropriate accessor and mutator functions for these member variables. Demonstrate an object of the CustomerData class in a simple program

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!