Solved

If a Base Class Has a Virtual Function Named Print

Question 41

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents