#ifndef MIDDLEH #define MIDDLEH #include #include "base.h" using namespace std; class middle: public base { int j; protected: void print(ostream& os) const {base::print(os); os << ", " << j;} public: middle(int initial_i, int initial_j): base(initial_i), j(initial_j) {} void newfunc() const {cout << "newfunc";} }; #endif