Multiple Choice
If a base class has a virtual function named print, and a pointer variable of that class is pointing to a derived object, then the code ptr->print ) ; calls
A) the base class print function
B) the derived print function
C) both the derived and base print functions
D) it causes a run-time error
Correct Answer:

Verified
Correct Answer:
Verified
Q43: Which of the following are not true<br>A)
Q44: An object of a derived class can
Q45: C++ implements polymorphism by waiting until run-time
Q46: The copy constructor from the base class
Q47: Which of the following are true?<br>A) constructors
Q48: Destructors are not inherited into the derived
Q49: Another name for the base class is<br>A)
Q50: Using inheritance allows us to<br>A) eliminate duplicate
Q52: If a base class has declared a
Q53: Which is more general, the base class