class Outer3{
class Inner3{
public void InnerFun(){
System.out.println("none static nest class have a none static member =>innerFun" );
}
}
Inner3 inner;
public static void main(String[] arg){
Outer3 outer=new Outer3();
outer.inner=outer.new Inner3();
outer.inner.InnerFun();
}
}
沒有留言:
張貼留言