标题: 请告诉我这段代码的运行顺序哦 [打印本页] 作者: sophitia 时间: 2015-7-2 23:23 标题: 请告诉我这段代码的运行顺序哦 void C_actionPerfomed(ActionEvent e)
{
Zi z=new Zi();
}
class Fu
{
1 int i=0;Other
2 Other fuOther =new Other("init Fu Other")
3 privte static int x=1;
public Fu()
{
4 System.out.print("init Fu")
}
}
class ZI extends Fu
{
5 int a=0;
6 Other ziOther =new Other("init Zi Other");
7 privte static int y=2;
public Fu()
{
8 System.out.print("init Zi")
}
}
请问是否有基础比较好的大神解决一下运行顺序问题,最好能有一点解释,谢谢!