Question: Write a C++ program that has one base class named EMPLOYEE that has private members NAME, SALARY, YEAR_HIRED and one derived class named MANAGER that
Write a C++ program that has one base class named EMPLOYEE that has private members NAME, SALARY, YEAR_HIRED and one derived class named MANAGER that inherits from EMPLOYEE. MANAGER also has private member STAFF which is an array of strings. In the body of program, declare an object of each and enter data.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
