#ifndef BASE_H #define BASE_H #include using namespace std; class base { private: int i; public: base(int init_i): i {init_i} { cout << "construct base\n"; } ~base() { cout << "destruct base\n" ; } void print() const { //print member function adequate for class base cout << i; } void f() const {cout << "f";} }; #endif