#ifndef DATE3_H #define DATE3_H #include #include "date0.h" using namespace std; class date3: public date0 { private: int year; int month; //1 to 12 inclusive int day; //1 to length[month] inclusive void print(ostream& ost) const override { cout << month << "/" << day << "/" << year; } public: date3(int init_month, int init_day, int init_year) : date0 {init_month, init_day, init_year}, year {init_year}, month {init_month}, day {init_day} {} date3& operator++() override; date3& operator+=(int count) override; }; #endif