Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c + + Date class: Data members to store: 1 . day 2 . month 3 . year Default constructor; initialize day, month and year
c
Date class:
Data members to store:
day month year
Default constructor; initialize day, month and year to be:
day month year;
Constructor with parameters set day, month and year according to the parameters.
post: dayd; monthm; yeary;
Function to set day, month and year according to the parameters. post: dayd; monthm; yeary;
Functions to return day, month and year data members. post: day; month; year;
Function to output day, month, and year in the form : daymonthyear ddmmyyyy
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