// Speaker Example // This Person class implements the Speaker // interface, which means that it must supply // a speak method. public class Person implements Speaker { private String name; private char gender; private int age; public Person(String theName, char theGender, int theAge) { name = theName; gender = theGender; age = theAge; } public void speak( ) { System.out.println("Hello, my name is " + name + "."); } public void Philosophize( ) { System.out.println("I think, therefore I am."); } public String toString( ) { return "Person: " + name + " " + gender + " " + age; } }