Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. (Date Class) Create a class called Date that includes three pieces of information as data members: A month (type int). A day (type int)
3. (Date Class) Create a class called Date that includes three pieces of information as data members: A month (type int). A day (type int) A year (type int). Your class should have a constructor with three parameters that uses the parameters to initialize the three data members. Provide a member function displayDate that displays the month, day and year separated by forward slashes (I). Write a test program that demonstrates class Date's capabilities
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