Example 5: first implementation of Date ADT (1)
public class Date implements DateADT { // Each Date value is a past, present, or future date.
// This date is represented by a year number y, a month number // m, and a day-in-month number d: private int y, m, d;
public Date (int y, int m, int d) { // Construct a date with year y, month m, and day-in-month d. this.y = y; this.m = m; this.d = d; }