java-scuola/Appointment P9.3/src/Daily.java

11 lines
298 B
Java
Raw Normal View History

2023-03-29 20:20:09 +02:00
public class Daily extends Appointment {
public Daily(String description, int day, int month, int year) {
super(description, day, month, year);
}
@Override
public boolean occursOn(int day, int month, int year) {
return super.occursOn(day + 1, month, year);
}
}