class Fu
{
int a = 2;
public void test()
{
System.out.println("Fu= " + a);
}
Fu()
{
this.test();
}
}
class Zi extends Fu
{
int a = 3;//这句话注释了结果完全不一样(注释前是0,3 注释后是2,2)想不明白,求解,最好将程序执行顺序列一下!!!{:soso_e183:}
public void test()
{
System.out.println("Zi=" + a);
}
}
class Demo2
{
public static void main(String[] args)
{
Zi z= new Zi();
z.test();
}
}