内部类继承不,下面结果是什么?class lianxi2
{
public static void main(String[] args)
{
B.a inner = new B().new a();
}
}
class A
{
A()
{
a a1 = new a ();
}
class a
{
a()
{
System.out.println("a");
}
}
}
class B extends A
{
B()
{
a a1 = new a ();
}
class a
{
a()
{
System.out.println("a2");
}
}
}
|
|