Once an interface has been defined, one or more classes can implement that interface. To implement an interface, include the implements clause in a class definition and then create the methods defined by the interface. The general form of a class that includes the implements clause looks like this:
To implement more than one interface, the interfaces are separated with a comma. Of course, the extends clause is optional.
The methods that implement an interface must be declared public. Also, the type signature of the implementing method must match exactly the type signature specified in the interface definition.
Here is ...