//DayOfYear Implementation File #include using namespace std; #include "DayOfYear.h" //Uses iostream: void DayOfYear::input( ) { cout << "Enter the month as a number: "; cin >> month; cout << "Enter the day of the month: "; cin >> day; check_date( ); } void DayOfYear::output( ) { cout <<"Date:" << month<<"/"< 12) || (day < 1) || (day > 31)) { cout << "Illegal date. Aborting program.\n"; //exit(1); } } int DayOfYear::get_month( ) { return month; } int DayOfYear::get_day( ) { return day; } DayOfYear::DayOfYear() { cout <<"I am being called!\n"; month=1; day=1; } DayOfYear::DayOfYear(int m, int d) { cout <<"He is being called!\n"; month=m; day=d; }