#ifndef DERIVEDH #define DERIVEDH #include #include "base.h" using namespace std; class derived: public base { int j; public: derived(int initial_i, int initial_j): base(initial_i), j(initial_j) {} virtual void g() {cout << "derived::g " << this << "\n";} }; #endif