I am have an interface with an inner class. Now the question is, why cannot I access the functions defined in the outer interface in a similar way to how methods are accessed in outer classes? I thought things should just work smoothly as this inner class would only be instantiated after a class, implementing the outer interface, being instantiated. Anyways the error I got was "No enclosing instance of the type OterInterface is accessible in scope"
public interface OterInterface {
public void someFunction1() ;
public void someFunction2() ;
public class Innerclass{
public String value1;
public String value2;
public String getValue1() {
OterInterface.this.someFunction1();
return value1;
}
}
}