Sail E0 Webinar
Question

If we store the address of a derived class object into a variable whose type is a pointer to the base class, then the object, when accessed using this pointer.


Options:
A .  continues to act like a derived class object.
B .  Continues to act like a derived class object if virtual functions are called.
C .  Acts like a base class object.
D .  Acts like a base class, if virtual functions are called.
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