#ifndef GRANDCHILDH #define GRANDCHILDH #include #include "middle.h" using namespace std; class grandchild: public middle { int k; void print(ostream& os) const {middle::print(os); os << ", " << k;} public: grandchild(int initial_i, int initial_j, int initial_k) : middle(initial_i, initial_j), k(initial_k) {} }; #endif