Question: Extend the Date Class below to include the following methods: - Default Constructor: Initializes Date object to Jan 1, 1900 - Parameterized Constructor - Copy

Extend the Date Class below to include the following methods:

- Default Constructor: Initializes Date object to Jan 1, 1900

- Parameterized Constructor

- Copy Constructor

- Destructor

- static isValidYear predicate method: valid range: 1900 to current year.

- static isValidMonth predicate method

- static isValidDay predicate method for a given month

- static isLeapYear predicate method

Implement a test program to demonstrate your class methods. Identify each test.

From this assignment:

Design a class called Date. The class should store a date in three integers: month, day, and year.

Design member functions to return the date as a string in the following formats:

12/25/2017

December 25, 2017

25 December 2017

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!