#ifndef INTERVAL_H #define INTERVAL_H #include "date.h" class interval { private: date start; //start of the interval date end; //end of the interval public: interval(const date& init_start, const date& init_end) : start {init_start}, end {init_end} { cout << "constructing interval "; print(); cout << "\n"; } ~interval() { cout << "destructing interval "; print(); cout << "\n"; } void print() const { cout << "from "; start.print(); cout << " to "; end.print(); } }; #endif