... Prentice Hall, Inc. All rights reserved. 54 8.12 Case Study: A Date Class •Ví dụ Date class – Overload phép tăng •s a ngày, tháng, năm – Overload phép += –hàm kiểm tra năm nhuận (leap year) –hàm ... #include " ;date1 .h" // Date class definition 9 10 int main() 11 { 12 Date d1; // defaults to January 1, 1900 13 Date d2( 12, 27, 1992 ); 14 Date d3( 0, 99, 8045 ); // invalid date 15 16 cout ... function operator++ 40 41 // overloaded postincrement operator; note that the dummy 42 // integer parameter does not have a parameter name 43 Date Date::operator++( int ) 44 { 45 Date temp = *this;...