/** Taken from Core Web Programming from * Prentice Hall and Sun Microsystems Press, * http://www.corewebprogramming.com/. * © 2001 Marty Hall and Larry Brown; * may be freely used or adapted. */ // This class is not abstract, so it must provide // implementations of method1 and method2. public class Class1 extends SomeClass implements Interface1 { public ReturnType1 method1(ArgType1 arg) { someCodeHere(); ... } public ReturnType2 method2(ArgType2 arg) { someCodeHere(); ... } ... }