#include < iostream > //using namespace std; class Father { public: void display1() { cout <<"\n This is method of Father"; } }; class Mother { public: void display2() { cout <<"\nThis is method of Mother"; } }; class Son: public Father, public Mother { public: }; int main() { Son sample; sample.display1(); sample.display2(); // getch(); return 0; }