What is the output of C++ program given below?
#include<iostream> using namespace std; class Parent { public: void func() { cout<<"function of Parent"<<endl; } }; class Child:public Parent { public: void func() { cout<<"function of Child"<<endl; } }; int main() { Child ch; ch.func(); }
Reveal answer
Fill a bubble to check yourself