#include<iostream>
using namespace std;
class Date{
public:
void printDate();
void GetYear();
void GetMonth();
void Getday();
void setDate(int Y,int m,int d)
{year=Y;
month=m;
day=d;}
private:
int year;
int month;
int day;
};
void Date::printDate()
{cout<<year<<month<<day<<endl;}
void Date::GetYear()
{cout<<year<<endl;}
void Date::GetMonth()
{cout<<month<<endl;}
void Date::Getday()
{cout<<day<<endl;}
int main()
{
Date d1;
d1.setDate(2010,6,8);
Date d2;
d2.setDate(2000,1,1);
Date d3(d1);
return 0;
}
09-16
09-16
09-16