#ifndef WINDOW_WITH_HORIZONTAL_H #define WINDOW_WITH_HORIZONTAL_H #include #include "window.h" using namespace std; class window_with_horizontal: public /*virtual*/ window { //mother int j; public: window_with_horizontal(int init_i, int init_j) : window {init_i}, j {init_j} { cout << "construct window_with_horizontal " << init_i << " " << init_j << "\n"; } ~window_with_horizontal() { cout << "destruct window_with_horizontal " << j << "\n"; } }; #endif