// Example: Interfaces // Module: speaker // Source code file: Person.java // Create classes that implement the Speaker interface. public class Person implements Speaker { public String name; public Person(String theName) { name = theName; } @Override public String toString( ) { return "Person; name: " + name; } @Override public void speak() { System.out.println("Hello, my name is " + name + "."); } public void philosophize( ) { System.out.println("I think, therefore I am."); } }