MCQOPTIONS
Saved Bookmarks
| 1. |
If there is a pointer p to object of a base class and it contains the address of an object of a derived class and both classes contain a virtual member function abc(), then the statement p->abc(); will cause the version of abc() in the __________class to be executed. |
| A. | Base Class |
| B. | Derived class |
| C. | Produces compile time error |
| D. | produces runtime error |
| Answer» C. Produces compile time error | |