i read those questions.it is very useful for me.
,
January 30, 2007 at 3:08 PM
i read those questions.it is very useful for me. i have doubt following program.can u plz clear for me. my question is private class A { void kani() System.out.println("kani"); } public class B extends A { void valavan() System.out.println("valavan"); } class C { public static void main(String args[]) { A a=new A(); B b=new B(); a.kani(); b.valavan(); } } i was not able to run this program.when i ru n this program some error appear.can u tell me what mistake i made and then what is difference between public , private,protected and default,
View All Comments