Answer to Question #60573 in C++ for shruti
Question #60573
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
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
Expert's answer
Need a fast expert's response?
Submit orderand get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment