public class Outer{
private int outProp=9;
class Inner{
private int inProp=5;
public void accessOuterProp(){
System.out.println("外部类的outProp属性值:"+outProp);
}
}
public void accessInnerProp(){
System.out.println("内部类的inProp=5属性值:"+new Inner().inProp);
}
public static void main(String[] args){
Outer out=new Outer();
out.accessInnerProp();
}