What will be the output of following program?


			  		

Loading

โœช Choose the correct option.

What will be the output of following program?

#include

using namespace std;
class P {
public:
void print() { cout <<" Inside P"; }
};

class Q : public P {
public:
void print() { cout <<" Inside Q"; }
};

class R: public Q { };

int main(void)
{
R r;
r.print();
return 0;
}

A. Compiler Error: Ambiguous call to print()
B. Inside P
C. Inside Q
D. None of the above