You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Child():Parent::Parent(10){}//explicitely call any base class constructor
Child(int xArg):Parent::Parent(xArg){}//explicitely call base class constructor
};
int main() {
// Write C++ code here
std::cout << "Try programiz.pro";
return 0;
}
//Note: Any constructor of child can call any constructor of Parent but it must call one constructor or compiler will assign it by default the default constructor.