Question: Specify, design, and implement a C++ class called date. Include 3 constructors with one, two, and three parameters, respectively. Include also a default constructor that

Specify, design, and implement a C++ class called date. Include 3 constructors with one, two, and three parameters, respectively. Include also a default constructor that sets the member variables to January 1, 1900. Use integers to represent a dates month, day, and year. Write a member function to increment the date to the next day. Include a friend function to display the date in both number and word format. Place the class in its own namespace. Test your class.

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!