Refactor ArrayList examples

This commit is contained in:
Grzegorz Piwowarek
2016-09-04 10:02:09 +02:00
parent 6bb724d828
commit 98ffbc1f37
2 changed files with 11 additions and 16 deletions
@@ -18,10 +18,6 @@ public abstract class Animal implements Eating {
this.name = name;
}
public String makeSound() {
return getSound();
}
protected abstract String getSound();
}