If needed, this hierarchy could be extended to include more classes. Adding a Supervisor To add another type of employee, such as a supervisor , a new class can be created. Supervisor A supervisor is a kind of manager. The Supervisor class directly inherits from Manager and indirectly inherits from Employee . A supervisor is just a special kind of employee.
Supervisor directly inherits from Employee .
Nonetheless, this is a decision not to be taken lightly. How one designs the inheritance hierarchy greatly affects what you can do with those classes later. To compile your program, use the Makefile . Compile and test your program with the program empltest.cpp . Write a Supervisor class.