// Tyler Mi // A class representing a Dog! public class Dog extends Animal { private int floofLevel; // Constructs a dog with the given name, breed, size, and floof level public Dog(String name, String breed, double size, int floofLevel) { super(name, breed, size); this.floofLevel = floofLevel; } // Returns the dog's floof level public int getFloofLevel() { return floofLevel; } // Returns a string representation of the dog public String toString() { return "\n" + " / \\__ name:" + this.name + "\n" + " ( @\\___\n" + " / O\n" + " / (_____/ \n" + "/_____/ U \n"; } // The dog makes a sound public void makeSound() { System.out.println("boof"); } // The dog gets a ball for you public void fetchBall() { System.out.println("heres your ball"); } }