|
Eranga and all,
Thank u for ur help. its work if i 1st compile A.java then testInher.java(which contain main method). Now, my question is: what is the rule for declaring superclass and subclass in a same file??? I was looking this information in some book but none of them did not mention the rule/regulation to declar superclass and subclass in same file. PLZ some one explain the proper rule to declar superclass and subclass declaration- i would really appriciate that. and in my above case, why does java compiler did not find the class "B". why should i compile them separtly? what need to be change/add to above code so i need to compile only testInher class(which contain main method). Please help me to understand the concept.
Thank a lot
Ovi
Last edited by makbar24 : 09-09-2008 at 04:26 AM.
Reason: add one more question
|