package com.two;
public class Eight {
public void show(){
final int a =1;
int b =2;
class Ljh{
int c =3;
public void print(){
System.out.println("访问外部a:"+a);
System.out.println("访问内部c:"+c);
System.out.println("访问外部b:"+b);
}
}
Ljh i = new Ljh();
i.print();
}
public static void main(String[] args) {
Eight E = new Eight();
E.show();
}
}
李家小凯
相关分类