MCQOPTIONS
Saved Bookmarks
| 1. |
#include <iostream>using namespace std;class Base {};class Derived: public Base {}; int main(){ Base *p = new Derived; Derived *q = new Base;}18.What will be the output of the following program? |
| A. | Base::lfc(int i) called |
| B. | Derived::lfc() called |
| C. | Base::lfc() called |
| D. | Compiler Error |
| Answer» E. | |