这两个默认成员函数一般不用重新定义 ,编译器默认会生成。
class Date
{ 
public :
//这两个运算符一般不需要重载,使用编译器生成的默认取地址的重载即可,只有特殊情况,才需
//要重载,比如想让别人获取到指定的内容!
//这个是没加const的
 Date* operator&()
 {
 return this ;
 }
//这个是加了const的
 const Date* operator&()const
 {
 return this ;
 }
private :
 int _year ; // 年
 int _month ; // 月
 int _day ; // 日
};




















