Dear Friends,

I got some errors while compiling the following
programs(using Inheritance - Extends keyword).  You
are requested to please solve and send me at an
earliest.

Problems / Errors :  Problem is cannot resolve symbol.


<File Name : Info.java>

class Info {
protected String name="Naven";
protected String add="Plot 65";
}

<File Name : Info1.java>

class Info1 extends Info {
private int age=22;
public void disp() {
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.disp();
}
}



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to