Write a program to read the following hierarchy. Employee is derived into PermanentEmployees and DailyEmployees.

Write a program to read the following hierarchy. Employee is derived into PermanentEmployees and DailyEmployees. PermanentEmployees are derived into DepartmentalEmployees and CompanyEmployees. CompanyEmployees are derived into RegionalManagers and AreaManagers. DepartmentalEmployees are derived into Sales, Production, and HumanResource employees. Defi ne a single array for storing all employee objects. Defi ne a function Salary, which displays the salary (do not calculate salary; just display any value) of permanent employees alone. Use dynamic_cast to solve the problem.  ( Hint: we cannot use virtual functions defi ned in the Employee class here as DailyEmployees do not have salary functions defi ned. We have to defi ne salary as a virtual function in the class PermanentEmployees. We have to use Employee pointer to access the objects. Whenever it is valid to cast from Employee to PermanentEmployees, the object belongs to any of the descendants of PermanentEmployees class. dynamic_cast helps us to fi nd this.)

find the cost of your paper

The post Write a program to read the following hierarchy. Employee is derived into PermanentEmployees and DailyEmployees. appeared first on Best Custom Essay Writing Services | EssayBureau.com.

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now