/** * 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; public Dog(String name, String group) { this.name = name; this.group = group; hairLength = 3.5; } // 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(); } }