import java.util.*;
import java.lang.*;
import java.io.*;

class Base{
    String name="kk";
    void eat(){
        System.out.println("eating");
    }
}
class Child extends Base{
    String name="kusuma";
    void display(){
        System.out.println(super.name+" "+name);
    }

    void eat(){
        super.eat();
    }
    
}
// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");
       Child c=new Child();
        c.display();
        c.eat();
        
    }
}

Embed on website

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