Create a class called Date in C++ 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(/).