Keyword indicating that a class implements the methods of a particular Java interface. A class can implement zero or more interfaces.
is a keyword that tells the Java compiler that you are implementing a defined interface in the present class. interface class Instrument { void play( Note n ); String what(); } class Percussion implements Instrument { public void play( Note n ) { System.out.println("Percussion.play() " + n); } public String what() { return "Percussion";
A Java keyword included in the class declaration to specify any interfaces that are implemented by the current class.
Implements is a keyword in Java that is used in conjunction with a class and an interface. A class can implement an interface. In fact, a class can implement as many interfaces as you'd like it to. By declaring that a class will implement an interface, you're requring that that class provides a definition for each method declared within that interface.
gives the implementation of an `interface'
The implements keyword is used in class declarations to indicate that the class implements the named interface or interfaces. The implements clause is optional in class declarations; if it appears, it must follow the extends clause (if any). If an implements clause appears in the declaration of a non- abstract class, every method from each specified interface must be implemented by the class or by one of its superclasses.