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 type of the pointer.
B) from the class of the object that is pointed to.
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:
Verified
Q5: Static binding occurs when the compiler binds
Q6: When the compiler binds a call to
Q7: In C++ polymorphism is very difficult to
Q8: When more than one class is derived
Q9: The term _ means the ability to
Q11: Polymorphism in C++ will not work unless
Q12: A virtual member function of class that
Q13: An abstract class is
A) one that has
Q14: _ to a base class may be
Q15: Polymorphism is when _ in a class
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents