Originally Posted by
Eranga
Ah, he forget the } sign at the end of testInher class. That's the reason I think. Because in NetBeans it notify that EOF reaches at the before last braces.
Really? Here is what he posted:
public class testInher {
public static void main(String [] args)
{ B e = new B();
e.displayFromB();
}
}
properly formatted (but not changed) as
public class testInher {
public static void main(String [] args)
{ B e = new B();
e.displayFromB();
}
}
Besides, that would result in a different error message.