#include #include using namespace std; #include "Date.h" Date::Date() // Default Constructor { month = 1; day = 1; year = 2000; } Date::Date(int mo, int da, int yr) // IN IN IN // Constructor { month = mo; day = da; if (yr==0) year = 2000; else year = yr; } void Date::Set(int mo, int da, int yr) // IN IN IN { month = mo; day = da; year = yr; } void Date::Print() const { cout << month << "/" << day << "/" << setfill('0') << setw(2) << year%100 << setfill(' ') << endl; } Date Date::Next() const { Date newDay; newDay = *this; // "*this" is implicit reference // to the object whose method is // being invoked. newDay.day++; // Stub code. Needs more code // to always work properly. return newDay; }