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:

Verified
Correct Answer:
Verified
Related Questions
Q15: In the derived class definition, you list
Q16: A derived class pointer can point to
Q17: If you have a copy constructor in
Q18: Using virtual functions is also known as
Q19: Which of the following should be virtual
Q21: You should make a function a virtual
Q22: If you define a function in the
Q23: A constructor of the base class is
Q24: The constructor for a class is inherited.
Q25: All member functions in a base class