#include <iostream>
using namespace std;
class Animal
{
public:
Animal() {cout << "111" <<endl;}
virtual void perform() = 0;
};
class Dol:public Animal
{
public:
Dol() {}
void perform(){
cout << "海豚" << endl;
}
};
class Monkey:public Animal
{
public:
Monkey() {}
void perform(){
cout << "猴子" << endl;
}
};
class Explain:public Dol, public Monkey
{
string name;
public:
Explain(){}
};
int main()
{
Explain e;
Monkey *p = &e;
p->perform();
Dol *q = &e;
q->perform();
return 0;
}