01: package src; 02: 03: public class SaleDate { 04: int year = 0;; 05: int month = 0; 06: int day = 0; 07: 08: public SaleDate() { 09: year = 2004; 10: month = 1; 11: day = 1; 12: } 13: 14: public SaleDate(int year, int month, int day) { 15: this.year = year; 16: this.month = month; 17: this.day = day; 18: } 19: }