I am not sure what they are asking for here. An example would be great.
Here is the complete list of requirements. I am working through an exercise in a book I have been reading but I have read the chapter over and over but I just cant make sense out of it.
-
A class definition for a date class that contains three integer data members:month,day,year
-
One constructor that assigns the date 1/1/2000 to any new object that does not recieve any arguments.
- One constructor thats accepts month and day arguements and uses a default year of 2004
- One constructor thats accepts month, day,and year arguements
- Each constructor should also output a message to the user stating which constructor is currently being used.
- A method that displays the values in the date object.
1 Answer