Program Assignment
apap7.2 - Classes/Function overloading
Create a date class composed of day, month, and year.
Create two constructors. The default constructor (no parameters) sets the date to 1/1/0000 using a constructor initialization list, and second constructor that uses three parameters: (month, day, year) to set the date. Make sure you check for valid before setting the date. Vaild years range from 0 to 16383. The second constructor cannot use an initialization list.
Overload the << operator so the output will appear in the format:
mm/dd/yyyy
Write three mutator (overloading) functions with the same name ChangeDate.
The file apap7-2.cpp contains code for returning the correct number of days in a month, and converting a string into an integer value which you can place into your program.
Use the program testdate.cpp when turning in your program.