Program to implement single/simple inheritance
Have a question about writing an inheritance program? Want to know how to declare classes to implement single inheritance? On this Ask Expert page you can check out quality replies for your question.
Q)Write a program to implement single inheritance. Declare base class employee with Emp_No. and Emp_Name. Declare derived class fitness with height and weight. Accept and display data for one employee. [4 Marks]
Looking forward for quality reply from our experts.