问答详情
源自:7-7 Java 中的静态内部类

this的问题

He I IoWorl d  2 • public class He110WorId{  private String name = "imooc";  8  13  23  26  29  int age = 2B;  //'A6åßi*Lh1nner  public class Inner  string name — "  public void show() {  System. println(  System. out. println( " 91' (f•Jage •  System. " * HelloWor1d.this.name  privateßt±  + name  + age);  public static void args) {  HelloWorId o new HelloWorId C);  Inner inn o. new Inner();  inn. show();

为什么这个里边要加this,而本题不需加this

提问者:慕前端6531350 2018-04-07 14:18

个回答

  • qq_久行_0
    2018-04-07 16:36:25

    看不到图片。。。。