What is the output of C++ program given below?
#include<iostream>
using namespace std;
class Test
{
public:
int a=9;
void func()
{
cout<<a*a;
}
};
class Hello:public Test
{
public:
void func(int x)
{
cout<<a*x;
}
};
int main()
{
Hello obj;
obj.func(5);
}
Reveal answer
Fill a bubble to check yourself