Predict the output of following program?


			  		

Loading

Choose the correct option.

Predict the output of following program?

#include
using namespace std;

class Base
{
public:
virtual void show() { cout<<" In Base "; }
};

class Derived: public Base
{
public:
void show() { cout<<"In Derived "; }
};

int main(void)
{
Base *bp, b;
Derived d;
bp = &d;
bp->show();
bp = &b;
bp->show();
return 0;
}

A. In Base 
In Derived
B. In Base 
In Base
C. In Derived
In Base
D. In Derived
In Derived