You have these files in the same directory. What will happen when you attempt to compile and run Class1.java if you have not already compiled Base.java
1) Compile Error: Methods in Base not found
2) Compile Error: Unable to access protected method in base class
3) Compilation followed by the output "amethod"
4)Compile error: Superclass Class1.Base of class Class1.Class1 not found
The answer is (4)
Can anybody tell the reason!
Regards,
cmbhatt
[ April 17, 2007: Message edited by: Chandra Bhatt ]