/** * Working Dog * @author gtowell * Created: Feb 2021 */ public class WorkingDog extends Dog { // the breed of working dog protected String breed="mixed"; // the task the working dog does protected String task = "herding"; public WorkingDog(String name, String breed) { super(name, "Working"); this.breed = breed; } @Override public String toString() { return super.toString() + " work " + task; } @Override public String sound() { return "woof"; } }