Answer:
Java class is given below
Step-by-step explanation:
class Date{
private int date;
private int month;
private int year;
public Date(){}
public Date(int date,int month, int year){
this.date= date;
this.month = month;
this.year = year;
}
public void setDate(int date){
this.date = date;
}
public void setMonth(int month){
this.month = month;
}
public void setYear(int year){
this.year = year;
}
public int getDate(){
return date;
}
public int getMonth(){
return month;
}
public int getYear(){
return year;
}
public boolean isLeap(int year){
return year%4==0
}
}