コンストラクタ、デストラクタ、継承

#include < iostream >
using namespace std;

class base {
public:
    base() { cout << "call base class constructor\n"; }
    ~base() { cout << "base class destructor\n"; }
};

class derived : public base {
public:
    derived() { cout << "call derived class constructor\n"; }
    ~derived() { cout << "call derived class destructor\n";}
};

int main()
{
    derived o;
    return 0;
}