Solved

If a Base Class Has a Virtual Function Named Print

Question 51

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions