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
Get step-by-step solutions from verified subject matter experts
