Provide a set and a get function for each data member


Create a class called Date that includes three pieces of information as data members: month (type int), day (type int) and yaer (type int). your class should have a constructor with three parameters that uses the parameters to initialize the three data members. provide a set and a get function for each data member.
Provide member function displayDate()
The program should contain
- A constructor.
- A set and get function for day ,month ,year .
If user supplies a day not between 1-30 , reset the day to 1. If user also
supplies a month not between 1-12, reset the month to 1..
- A member function displayDate():that displays the month, day ,and year separated by forward slashes(/). 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Provide a set and a get function for each data member
Reference No:- TGS0142464

Expected delivery within 24 Hours