public class HelloWorld{
private String name = "imooc";
int age = 20;
public class Inner {
String name = "爱慕课";
public void show() {
System.out.println("外部类中的name:" + );
System.out.println("内部类中的name:" + );
System.out.println("外部类中的age:" + age);
}
}
public static void main(String[] args) {
HelloWorld o = new HelloWorld ();
Inner inn = ;
inn.show();
}
}
慕的地6079101
路人Bing
sunyaox
相关分类