Question: c++ Create a Month class that does the following: keeps track of the current Month and Year as integers. A default constructor that sets the
Create a Month class that does the following: keeps track of the current Month and Year as integers. A default constructor that sets the month to January of 1970 A constructor that sets the month to January of the indicated year. A constructor that sets the month and year. Check the month, make sure it is between 1 and 12 Do anything you want to make it correct if it isn't A toString() function that returns the name of the month and the year. "Janurary, 1970"; An overloaded pre-fix and post-fix ++ operator that adds one month. Jan -> Feb. Feb->March, etc, o Move the year and month if DEC An overloaded
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
