package class2_Lab_StaticVariablesAndMethods; public class Dog extends Animal { /** * Create new dog * @param name display name of the dog. */ public Dog(String name) { super(name); } /** * Create dog named "Fido" */ public Dog() { this("Fido"); } /** * Barks. */ public void speak(){ System.out.println("Woof!"); } /** * Begs. */ public void beg() { System.out.println("**BIG DOGGY EYES!**"); } public boolean equals(Object other) { boolean result; if(other instanceof Dog) { result = false; } else { result = super.equals(other); } return result; } }