Question: Design and implement a C++ program that defines a base class A, which has a subclass B, which itself has a subclass C. The A
Design and implement a C++ program that defines a base class A, which has a subclass B, which itself has a subclass C. The A class must implement a method, which is overridden in both B and C. You must also write a test class that instantiates A, B, and C and includes three calls to the method. One of the calls must be statically bound to As method. One call must be dynamically bound to Bs method, and one must be dynamically bound to Cs method. All of the method calls must be through a pointer to class A.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
