Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
