Computer Science, asked by lollypopshankar19, 6 months ago

What is the output?
using namespace std;
class A
{
public:
virtual void fun() {cout << "1";}
};
class B: public A
{
public:
virtual void fun() {cout << "8";}
};
class C: public B
{
public:
virtual void fun() {cout << "3";}
int main()
{
A*a = new C;
A*b = new B;
a->fun();
b->fun();
return 0;
}

Answers

Answered by ranjanashwin02
0

Answer:

O

Don t Know

Explanation:

Dont know......

Similar questions