8 Replies Latest reply: Dec 16, 2006 5:30 AM by 807599 RSS

    inheritance problem

    807599
      class base{
      public void print(){
      System.out.println("Hello Base class");
      }
      }
      
      class child extends base{
      }
      
      public class test{
           public static void main(String arg[]){
           Base s=new Base();
           s.print();
      
           Child c=new Child();
           c.print();
           }
      }
      Error: Cannot resolve symbol Base and child