#include using namespace std ; // Base class class BaseA { public: void myFunctionBaseA() { cout << "Some content in parent class BaseA." << endl ; } }; // Another base class class BaseB { public: void myFunctionBaseB() { cout << "Some content in parent class BaseB.." << endl ; } }; // Derived class class MyChildClass: public BaseA, public BaseB { }; int main() { MyChildClass myObj; myObj.myFunctionBaseA() ; myObj.myFunctionBaseB() ; return 0; }