/** * A simple dog class. This really should never be instantiated * @author gtowell * Created: Feb 2021 */ public class Dog extends Pet { // One of the AKC groups protected String group; // The Hair length protected double hairLength; // true iff the dog has a double coat. protected boolean doubleCoat; // No comment as overriding and the super comment still is correct @Override public String sound() { return "arf"; } @Override public String toString() { return "My name is " + name + " group " + group + " and I say " + sound(); } public static void main(String[] args) { System.out.println(new Dog()); } }