#include <iostream>
using namespace std;

class base
{
protected:
    base() { cout << "base()" << endl; }
};

class obj
{
public:
    obj(int i) { cout << "obj(" << i << ")" << endl; }
};

class derived : public base
{
public:
    derived() : o(10), base() { cout << "derived()" << endl;}
private:
    obj o;
};

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