public class Dog extends Animal { @Override public String utterance() { return "Woof"; } public void beg() { // left blank, as this is simply for the purpose of having a // method that other child classes of Animal do not have. } }