// interface contains only abstract method 
interface speed{
    int speed=20;
    void move();
}
class vehicle implements speed{
    public void move(){
        System.out.println("This vehicle travels with a speed of "+speed);
    }
}
public class Main{
    public static void main(String[] args){
        vehicle obj=new vehicle();
        obj.move();
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: