为什么要用this,说详细点
package srcs;
interface Lol{
void show();
}
public class 内部类2 {
public static void main(String[] args){
Lol l=new Lol(){
public void show(){
System.out.println("A");
this.test();
}
public void test(){
System.out.println("B");
}
};
l.show();
Object o=new Object(){
public String toString(){
this.show();
return "C";
}
public void show(){
System.out.println("GG");
}
};
System.out.println(o);
}
}