Add @Override annotations

This commit is contained in:
Jack Stratton 2015-10-01 22:09:06 +02:00
parent 0262767fb7
commit af5ed7162f

View file

@ -57,10 +57,12 @@ public class Potato implements Tuber {
return this.isPutIntoOven(); return this.isPutIntoOven();
} }
@Override
public boolean isDelicious() { public boolean isDelicious() {
return this.isBaked(); return this.isBaked();
} }
@Override
public Tuber propagate() { public Tuber propagate() {
return new Potato(); return new Potato();
} }