To write a program in c++ to calculate the salary using single inheritance.
Do the following :-
a) Create a base class employee and declare the function get_data() to get the employee details.
b) Declare the derived class called salary and define the function get_sal() to get the salary details.
c) Define the function calculate() to find the net pay and display the details
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-60573.pdf
Comments
Leave a comment