View Single Post
  #5 (permalink)  
Old 09-08-2008, 01:36 PM
masijade masijade is offline
Senior Member
 
Join Date: Jun 2008
Posts: 551
masijade is on a distinguished road
Quote:
Originally Posted by Eranga View Post
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:
Quote:
public class testInher {

public static void main(String [] args)
{ B e = new B();
e.displayFromB();
}
}
properly formatted (but not changed) as
Code:
public class testInher { public static void main(String [] args) { B e = new B(); e.displayFromB(); } }
Besides, that would result in a different error message.
Reply With Quote