Question: An Employee Management System program provides the following classes Employee, PermanentEmployee, Temporary Employee such that the class Employee acts as the base class for the

 An Employee Management System program provides the following classes Employee, PermanentEmployee,

An Employee Management System program provides the following classes Employee, PermanentEmployee, Temporary Employee such that the class Employee acts as the base class for the other two classes. Declare and define appropriate data members & functions in the base class. The base class should contain an abstract function to calculate net salary. The class PermanentEmployee should Declare Data members for storing BasicSalary, HRAPercent, DAPercent, PFPercent b. Provide body for the abstract function, contained in the base class, to calculate net salary on the basis of the data given above. The class TemporaryEmployee should Declare Data members for storing HourlyWages, Hours Worked b. Provide body for the abstract function, contained in the base class, to calculate wages on basis of the data given above Test the above classes and demonstrate dynamic binding. Your application should provide options to: a. Add data for permanent employees b. Add data for temporary employees C. Calculate salary of an employee given his/her empno Your report should contain the following: 1.1 Implementation of class PermanentEmployee 1.2 Implementation of class Temporary Employee 1.3 Implementation of class Employee 1.4 Testing and demonstration of dynamic binding

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!