Question: In C++, Write a class EMPLOYEE with private data members NAME, SALARY. Use a constructor to initialize NAME to Thomas and SALARY to 1000. Also
In C++,
Write a class EMPLOYEE with private data members NAME, SALARY. Use a constructor to initialize NAME to "Thomas" and SALARY to 1000. Also write a class MANAGER that inherits from EMPLOYEE and has private data member DEPARTMENT. Declare an instance of each class and have the user enter values.
NOTE: PLEASE READ THE QUESTION CAREFULY AND ANSWER IT IN THE SIMPLIEST FORM. IF YOU'RE NOT SURE ABOUT WHAT YOU'RE DOING, PLEASE DO NOT ANSWER THE QUESTION. INCOMPLETE OR WRONG ANSWERS WILL GET NEGATIVE VOTES.
THANK YOU!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
