how do you implement an interface java code example
Example: Interface in java
// interface syntax
interface InterfaceName
{
fields // by default interface fields are public, static final
methods // by default interface methods are abstract, public
}