Question: C++ code pleaseee QUESTION 2: Write a new class named manager that is derived from Employee class as follows: Department of type string. 2 YearsOfExperience
QUESTION 2: Write a new class named manager that is derived from Employee class as follows: Department of type string. 2 YearsOfExperience of type integer Bounus of type double. The class should have the following member functions: A default constructor. 2. A parameterized constructor. Print function that prints all the details of the manager. A function named Salary that returns double and calculates the manager's salary as follows: manager salary = employee salary + bounus. QUESTION 3: Write a third class named Executive that is derived from manager. The class has the following member functions: A default constructor. 2 A parameterized constructor. Print function that will print to the screen the string "Executive followed by all of the attributes. 4. A function named Salary that returns double and calculates the Executive's salary as follows: 3 executive salary manager salary. manager salary + 25% of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
