using namespace std;
The class Date {
Private:
Int year;
Int the month;
Int day;
Public:
Date();
The Date (int y, int m, int d);
The Date (Date & D);
During void setDate (int, int the month, int day {
This -> year=year;
This -> the month=month;
This -> day=day;
}
Void showDate ();
};
Date: Date () : the year (2021), the month (4), day (16) {
}
Date: the Date (Date & D) {
Year=D.y ear;
The month=D.m onth.
Day=D.d ay;
}
The inline void Date: : showDate () {
During cout <<<"/" the month <
Int main ()
{
The Date d1;
D1. ShowDate ();
The Date d2 (2021, 3, 13);
D2. ShowDate ();
D2. SetDate (2021, 5, 1);
D2. ShowDate ();
The Date d3 (d1);
D3. ShowDate ();
return 0;
}