About Question enthuware.ocajp.i.v7.2 . 1112 :
Posted: Thu Feb 12, 2015 5:46 pm
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
// 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