Refactor ArrayList examples
This commit is contained in:
@@ -18,10 +18,6 @@ public abstract class Animal implements Eating {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String makeSound() {
|
||||
return getSound();
|
||||
}
|
||||
|
||||
protected abstract String getSound();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user