HAI FRIENDS,

I AM LEARNING JAVA PROGRAMMING IN LINUX OPERATING
SYSTEM. WHEN I COMPILING PROGRAMS I AM GETTING ERRORS
LIKE CANNOT RESOLVE SYMBOLS. THIS I GOT IN INHERITENCE
CHAPTER.

CAN ANY BODY HELP ME FOR THE ABOVE ERROR .

HERE I AM GIVING THE SAMPLE PROGRAM IS

File name is Info.java

class Info {
    Protected String name ="ezhil";
    protected String add="9, lal mohammed street";
}

File name is Info1.java

class Info1 extends Info {
   private int age=22;
   public void displ() {
      System.out.println("name   :" + name);
      System.out.println("address  :" + add);
      System.out.println("age is   :" + age);
}
  public static void main (String args[]) {
   Info1 i = new Info1();
   i.displ();
}
}


Regards,

Krishna

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to