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