#include <iostream>
using namespace std;
class Mammal{
public:
Mammal(){
cout<<"Mammal构造"<<endl;
}
~Mammal(){
cout<<"析构Mammal"<<endl;
}
};
class Dog:public Mammal{
public:
Dog(){
cout<<"Dog构造"<<endl;
}
~Dog(){
cout<<"析构Dog"<<endl;
}
};
int main(){
Dog dog;
return 0;
}