#ifndef DATE_H #define DATE_H #include #include using namespace std; class date { int year; //Must construct data members in this order. int month; //1 to 12 inclusive int day; //1 to length[monnclusiveth] inclusive void install(int m, int d, int y); public: date(int initial_month, int initial_day, int initial_year) { install(initial_month, initial_day, initial_year); } date(); //No-argument constructor initializes the object to today's date virtual ~date() {} int get_month() const {return month;} int get_day() const {return day;} int get_year() const {return year;} virtual int length() const; date& operator++(); date& operator--(); friend ostream& operator<<(ostream& o, const date& d) { return o << d.month << "/" << d.day << "/" << d.year; } }; #endif