Solved

When a Virtual Member Function of a Class in a Class

Question 3

Multiple Choice

When a virtual member function of a class in a class hierarchy is invoked through a pointer to an object in the class hierarchy, the compiler will select the member function to be invoked


A) from the class of the object that is pointed to.
B) from the class of the type of the pointer.
C) from the base class of the inheritance hierarchy.
D) from the derived class of the base pointer object.
E) None of the above

Correct Answer:

verifed

Verified

Related Questions