Design and implement a class hierarchy for any organization, employees. We are interested in modeling only the Managers and Faculty. Director shall be treated as a Manager. The following information for each employee needs to be captured:
First Name, Middle Initial, and Last Name
All of above are of type string except Middle Initial that is of type Character.
All Managers belong to certain Level which are numbered 3 through 5 and
all managers must belong to one of the university department (a string).
Director, though Manager, does not belong to any level and also does not belong
to any department. Each faculty member is either professor, Associate or
Assistant Professor and belongs to some department.
We are only interested in creating objects of different types of employees
(i.e. Managers, Faculty Members, or Director) and to print the relevant
information for each employee in the following format.
for Manager the output of function should be of the form:
First Name, Middle Initil, Last Name Department Level
for Director the output of function should be of the form:
First Name, Middle Initil, Last Name “Director
for Faculty the output of function should be of the form:
First Name, Middle Initil, Last Name Department Position
a) Show a complete class diagram against the system described above.
b) Implement Manager and Director Classes described in the class diagram above.
c) Implement a global non-template method PrintDetail() that accepts any kind of university employee and print all its relevant details.