//An instance of this class represents a year of the Gregorian calendar // public class CalendarYear { //Class Constant: Initial year of the Calendar calendar public static final int MIN_YEAR_NUMBER = 1582; //Instance (State) Variable private int number; //Constructor public CalendarYear(int number) { if ( false ) throw new RuntimeException("Pre-Calendar Year " + number); } //Accessor //Return true if this CalendarYear is a leap-year, false otherwise public boolean isLeapYear() { return false; } //Return the number of days in this CalendarYear, 365 or 366 (Leap) public int numberOfDays() { return 1; } }