唯一重要的是您是否使用
OuterClass.this.method()例如
class OuterClass { void method() { } class InnerClass { void method() { OuterClass.this.method(); // not the same as method(). } } }
唯一重要的是您是否使用
OuterClass.this.method()例如
class OuterClass { void method() { } class InnerClass { void method() { OuterClass.this.method(); // not the same as method(). } } }