public class Date
{
private int month;
private int day;
private int year;
public Date( int theMonth, int theDay, int theYear )
{
month = checkMonth( theMonth );
year = theYear;
day = checkDay( theDay );
System.out.printf( "Date object constructor for date %s\n", this );
}
public String toString()
{
return String.format( "%d/%d/%d", month, day, year );
}
}