import java.util.*;

/**
 * Class MyDate
 * This class holds a date's information, such as year, month, day,
 * And methods to set and get a person's information.
 * @author Li Jin
 * @version 1.0
 * This is a sample for CSIC370. Any suggestions are welcome!
 */

public class MyDate{
    private int year;
    private int month;
    private int day;

    public MyDate(){
	day=0;
	month=0;
	year=0;
    }
    public MyDate(int month, int day, int year){
	this.year=year;
	this.month=month;
	this.day=day;
    }
    public int getYear(){
	return year;
    }
    public int getMonth(){
        return month;
    }
    public int getDay(){
        return day;
    }
    public void setYear(int year){
        this.year=year;
    }
    public void setMonth(int month){
        this.month=month;
    }
    public void setDay(int day){
        this.day=day;
    }
    public boolean equals(MyDate date){
	if(this.year==date.getYear() && this.month==date.getMonth() && this.day==date.getDay())
	    return true;
	else return false;
    }
    public String toString(){
	return ""+month+"/"+day+"/"+year;
    }
}


