/******************************* FILE HEADER ********************************** File: SimpleDate.java Main: Oops3.java Author: James D. Skrentny, skrentny@cs.wisc.edu copyright 2000 all rights reserved Course: CS 302: Lectures 1 & 2 Compiler: CodeWarrior IDE 4.0 (JDK 1.2) Platform: Windows NT 4.0 **************************** 80 columns wide *********************************/ /** * A simple Date class used by exception handling example. * * BUGS: none known **/ class SimpleDate { private int day, year; private String month; public SimpleDate (int day, String month, int year) { this.day = day; this.month = month; this.year = year; } public void setDay (int day) { this.day = day; } public void setMonth(String month) { this.month = month; } public void setYear (int year) { this.year = year; } public int getDay () { return this.day; } public String getMonth() { return this.month; } public int getYear () { return this.year; } public String toString () { return this.month + " " + this.day + ", " + this.year; } }