Discuss the chain of constructor and destructor in derived class. Write a program to define a class named Employee with data members name, age and gender. Then create another class named EmployeeSalary inherited from Employee. In this class, the user should give the monthly salary of the employee and calculate the yearly salary after 15% tax deduction. In the main function, you should get the employee’s basic information and salary using inheritance.
Answered by
0 Comments
9 months ago
This answer is restricted. Please login to view the answer of this question.