Figure 1 represents the relationship among classes (class name is bolded). Use it to answer the question that follows.
Write a C++ program that would implement the form of inheritance, the base would
allow the user to key in and the derived class would determine and output the amount
(salary + bonus) using a member function.