// Speaker Example // This Cat class is derived from the abstract // class animal. This class also implements the // Speaker interface, which means that it supplies // a speak method. public class Cat extends Animal implements Speaker { public Cat(String theName) { super(theName); } public void speak() { System.out.println("Meow."); } public String toString() { return "Cat: " + name; } }