Question: write a C++ program using classes. (need 3 Constructors, mutator functions, main function). 2. neployen Class Write a class named zeployee that has the following

write a C++ program using classes.
(need 3 Constructors, mutator functions, main function).
write a C++ program using classes. (need 3 Constructors, mutator functions, main

2. neployen Class Write a class named zeployee that has the following member variables: - name. A string that holds the employee's name. - idsusber. An int variable that holds the employce's ID number. - departannt. A string that holds the name of the department where the troones vorks: - position. A string that holds the employee's job tide. The class should have the following constructors: - A constructor that accepts the following values as arguments and assigns then the appropriate member variables: employee's name, employee's ID number, dose: ment, and position. - A constructor that aceepts the following values as arguments and assigns them to gy appropriate member variables: employee's name and ID number. The departes and position fields should be assigned an empty string (n=). - A default constructor that assigns empty strings (" ") to the name, departnont, in position member variables, and 0 to the idsumber member variable. Write appropriare mutator functions that store values in these member variable al accessor functions that return the values in these member variables. Once yoe tiviy written the class, write a separate program that creates three Employee objects to hin the following data. The program should store this data in the three objects and then display the das each employec on the screen

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!