Sail E0 Webinar
Question

If there is a pointer p to object of a base class and it contains the address of an object of a derived class and both classes contain a virtual member function abc(), then the statement 

p->abc();

will cause the version of abc() in the __________class to be executed.


Options:
A .  Base Class
B .  Derived Class
C .  Produces compile time error
D .  produces runtime error
Answer: Option B



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers