Page 1 of 1

About Question enthuware.ocajp.i.v7.2 . 1112 :

Posted: Thu Feb 12, 2015 5:46 pm
by killesk
When I comment out the line:
// catch (NewException e){}


I get the error message relating to the static method m2:
No enclosing instance of type Question_0001 is accessible. Must qualify the allocation with an enclosing instance of type Question_0001 (e.g. x.new A() where x is an instance of Question_0001).

Could someone explain to me please why I'm getting that error reference?

Is it because it's a static method and I'm trying to instantiate an object?

-Kind regards,
Killesk

Re: About Question enthuware.ocajp.i.v7.2.1112 :

Posted: Thu Feb 12, 2015 9:41 pm
by admin
Please post the exact code that you are trying to compile. It looks like a case of missing or extra bracket.