In general you use OuterClassName.this
to refer to the enclosing instance of the outer class.
In your example that would be a.this.otherMethod()
OuterClassName.this.outerClassMethod();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With