What is the output of C++ program given below?
#include<iostream> using namespace std; class Parent1 { public: int a=10; }; class Parent2 { public: int a=5; }; class Child:public Parent1,public Parent2 { public: int func() { return a; } }; int main() { Child ch; cout<<ch.func(); }
Reveal answer
Fill a bubble to check yourself