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:
1. day 2. month 3. year
Default constructor; initialize day, month and year to be:
day=1, month=1, year=1990;
Constructor with parameters set day, month and year according to the parameters.
post: day=d; month=m; year=y;
Function to set day, month and year according to the parameters. post: day=d; month=m; year=y;
Functions to return day, month and year data members. post: day; month; year;
Function to output day, month, and year in the form : day/month/year (dd/mm/yyyy)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!