Click to follow our Afritutor YouTube Channel, subscribe and click notifications and get updates on new learning videos
<=Back
Figure 2 shows a class inheritance. Use it to answer the question that follows.
Write a C++ program that would implement the classes named teacher and person.
The program should then accept the name ,age, basic salary, house allowance, rate of taxation and calculate the net salary through the Compute_netsal(). The program should then output the net salary.
Hint: tax=basic salary*rate
 Viewed: 510 times For Better experience and learning,for video answers, after video ends playing, click next question in the questions list!!!
Share in: