@@ -0,0 +1,461 @@
+class First%0A%7B%0A %0A    void display()%0A    %7B%0A        System.out.println(%22Inside First%22);%0A    %7D%0A%7D%0A %0Aclass Second extends First%0A%7B%0A %0A    void display()%0A    %7B%0A        System.out.println(%22Inside Second%22);%0A    %7D%0A%7D%0A %0A %0Aclass Test%0A%7B%0A %0A    public static void main(String%5B%5D args)%0A    %7B%0A        First obj1 =  new First();%0A        Second obj2 =  new Second();%0A %0A        First ref;%0A        ref = obj1;%0A        ref.display();%0A %0A        ref = obj2;%0A        ref.display();%0A    %7D%0A%7D%0A

Create inhertance.java