abstract class animal{
    abstract void printsound();
    public void display(){
        System.out.println("it is animal");
    }
}
class cat extends animal{
    void printsound(){
        System.out.println("meow meow");
    }
}
public class Main{
    public static void main(String[] args){
        cat obj=new cat();
        obj.display();
        obj.printsound();
    }
}

Embed on website

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