Question: 8 . 6 In Exercise 8 . 3 , the classes teacher, officer, and typist are derived from the class staff. As we know, we
In Exercise the classes teacher, officer, and typist are derived from the class staff. As we know, we can use container classes in place of inheritance in some situations. Redesign the program of Exercise such that the classes teacher, officer, and typist contain the objects of staff.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
