Question: 1. Person Data L10 marks] Step 1 Person Data, CustomerData [12 marks] Design a class named PersonDatawwith the following member variables lastName firstName address city
![1. Person Data L10 marks] Step 1 Person Data, CustomerData [12](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f50db42606b_85966f50db3ba84b.jpg)
![marks] Design a class named PersonDatawwith the following member variables lastName firstName](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f50db4ae955_86066f50db4509d1.jpg)
1. Person Data L10 marks] Step 1 Person Data, CustomerData [12 marks] Design a class named PersonDatawwith the following member variables lastName firstName address city state Zip phone 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 CustomeDatam class should have the following member variables: customerNumber 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 mailing list. Write appropriate accessor and mutator functions for these member variables. Demonstrate an object of the CustomerData class in a simple program. Sample output Customer #1 Last Name: Smith First Name: Joan Address: 123 M Street ain City: Smithville
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
