class OuterInnerClassSon
{
class InnerClass
{
void fun()
{
System.out.println("InnerClass::fun");
}
}
class InnerClassSon extends InnerClass
{
void fun()
{
super.fun();
System.out.println("InnerClassSon::fun");
}
}
void test()
{
new InnerClassSon().fun();
}
public static void main(String[] args)
{
//System.out.println("Hello World!");
new OuterInnerClassSon().test();
}
}
/*
InnerClass::fun
InnerClassSon::fun
请按任意键继续. . .
*/