#include <iostream>
using namespace std;
class test
{
public :
test(){cout << "construct test" << endl;}
~test(){cout << "destroy test" << endl;}
};
class base
{
public :
base(){cout << "construct base" << endl;}
~base(){cout << "destroy base" << endl;}
};
class sub:public base
{
public :
test exp;
sub(){cout << "construct sub" << endl;}
~sub(){cout << "destroy sub" << endl;}
};
int main()
{
sub obj;
return 0;
}