#include <iostream>
using namespace std;
class ClassA{
public:
void dispalyA(){
cout<<"ClassA:display"<<endl;
}
void func(){
cout<<"ClassA:func"<<endl;
}
};
class ClassB{
public:
void dispalyB(){
cout<<"ClassB:display"<<endl;
}
void func(){
cout<<"ClassB:func"<<endl;
}
};
class Device:public ClassA,public ClassB{
public:
void display(){
dispalyA();
dispalyB();
ClassA::func();
}
};
int main()
{
cout << "Hello World!" << endl;
Device d1;
d1.display();
return 0;
}
?