Question: Design a class called Date that has integer data members to store month, day and year. THe class should have a three parameter defualt constructor

Design a class called Date that has integer data members to store month, day and year. THe class should have a three parameter defualt constructor that allows the date to be set at the time a new Date object is created. If the user creates a Date object without passing any arguments, or if the values passed are invalid, the default values of 1,1,2001 (i.e. January 1, 2001) should be used.

The class should have member functions to print the date in the following formats:

3/15/16

March 15, 2016

15 March 2016

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!