class Outter{
public static int num = 4;
public void method(){
//方法中定义的类叫局部内部类
class Inner{
int num1 = 5;
public void show(){
System.out.println
}
}
Inner inner = new Inner();
inner.show();
}
}
class OutterDemo{
public static void main(String [] args){
}
}
网友评论