没有限定词,
x()将递归。使用限定符时,将
x()调用封闭实例的方法。
class Envelope { void x() { System.out.println("Hello"); } class Enclosure { void x() { Envelope.this.x(); } }}
没有限定词,
x()将递归。使用限定符时,将
x()调用封闭实例的方法。
class Envelope { void x() { System.out.println("Hello"); } class Enclosure { void x() { Envelope.this.x(); } }}