So, let’s say, I have classes ExternalClass, OutterClass and InnerClass in a sketch called TestProject:
public class ExternalClass{
ExternalClass(){
}
}
final static public class OutterClass{
final static public class InnerClass extends ExternalClass{
private String someValue;
InnerClass(String someValue){
super();
this.someValue = someValue;
}
}
}
The console shows an error:
TestProject [11]: No enclosing instance of type TestProject is available due to some intermediate constructor invocation
What’s going on and how do I extend InnerClass by ExternalClass?