Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Specify, design, and implement a class called date. Include 3 constructors with one, two, and three parameters, respectively. Include also a default constructor that sets
Specify, design, and implement a 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started