Interface in Java Implementation
interface Moveable
{
int AVG_SPEED = 40;
void move();
}
class Vehicle implements Moveable
{
public void move()
{
System.out.println ("Average speed is"+AVG-SPEED");
}
public static void main (String[] arg)
{
Vehicle vc = new Vehicle();
vc.move();
}
}