Add @Override annotations
This commit is contained in:
parent
0262767fb7
commit
af5ed7162f
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue