Menu

[Solved]Person Employee Customer Design Class Named Persondata Following Member Variables Name Ad Q37298651

I. Person, Employee, and Customer Design a class named PersonData with the following member variables: name, address, contact

customer name: John Talor address: 318 Jane Rd, Troy AL 36081 contact: 334-356-788 gender: M customerlD; c345678 review: good

I. Person, Employee, and Customer Design a class named PersonData with the following member variables: name, address, contact, gender Write the appropriate accessor and mutator functions for these member variables Next, design a class named Customer, which is derived from the Person class. The Customer class should have the following member variables: custanerR, review Write the appropriate accessor and mutator functions for these member variables. Next, design a class named Employee, which is derived from the Person class. The Employee class should have the following member variables: empleveelR vearSalarv Write the appropriate accessor and mutator functions for these member variables In the main function, please define an object customer1 under the class Customer and an object employeel under the class Employee. The initial information of these two objects are shown as following: employeel: name: Alice White address: 123 University Ave, Troy AL 36081 contact: awhite@gmail.com gender: F emploveeID: e12345 yearSalary: 100000.00 customer name: John Talor address: 318 Jane Rd, Troy AL 36081 contact: 334-356-788 gender: M customerlD; c345678 review: good The main function will call special functions to display the initial information of these tow objects. Then the main function will ask user to input the new value of xearSalarx for employeel. Ihen the main function will call the special function again to display the update information of employeel Answer: Show transcribed image text I. Person, Employee, and Customer Design a class named PersonData with the following member variables: name, address, contact, gender Write the appropriate accessor and mutator functions for these member variables Next, design a class named Customer, which is derived from the Person class. The Customer class should have the following member variables: custanerR, review Write the appropriate accessor and mutator functions for these member variables. Next, design a class named Employee, which is derived from the Person class. The Employee class should have the following member variables: empleveelR vearSalarv Write the appropriate accessor and mutator functions for these member variables In the main function, please define an object customer1 under the class Customer and an object employeel under the class Employee. The initial information of these two objects are shown as following: employeel: name: Alice White address: 123 University Ave, Troy AL 36081 contact: awhite@gmail.com gender: F emploveeID: e12345 yearSalary: 100000.00
customer name: John Talor address: 318 Jane Rd, Troy AL 36081 contact: 334-356-788 gender: M customerlD; c345678 review: good The main function will call special functions to display the initial information of these tow objects. Then the main function will ask user to input the new value of xearSalarx for employeel. Ihen the main function will call the special function again to display the update information of employeel Answer:

Expert Answer


Answer to I. Person, Employee, and Customer Design a class named PersonData with the following member variables: name, address, co… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *