Recent Question/Assignment

You are requested to develop such program in which you must :
Declare the base class emp.
Use the function called get(), to get the employee details.
Declare the derived class salary.
Declare and define the function get1() to get the salary details.
Define the function calculate() to find the net pay.
Read the number of employees.
Call the function get(),get1() and calculate() to each employees.
Test the above operations by writing a complete C++ program using single inheritance