Question: PersonData and customerData classes Design a class named PersonData with the following member variables lastName . firstName . address . city - state . zip
PersonData and customerData classes Design a class named PersonData with 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 customerData class should have the following member customerNumber e mailingList The customerNumber 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 variable will be used to hold a unique integer for each customer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
