Solved

If a Base Class Has a Non-Virtual Member Function Named

Question 20

Multiple Choice

If a base class has a non-virtual member 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