//to implement multiple inheritance, interface must be used 
interface accelerate{
    public void acceleratemethod();
}
interface brake{
    public void brakemethod();
    
}
class car implements accelerate,brake{
    public void acceleratemethod(){
        System.out.println("Acceleratemethod");
    }
    public void brakemethod(){
        System.out.println("Brakemethod");
    }
}
public class Main{
    public static void main(String[] args){
        car obj=new car();
        obj.acceleratemethod();
        obj.brakemethod();
    }
}

Embed on website

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