class Fu
{
int num;
Fu()
{
System.out.println("fu run");
}
Fu(int x) //子类构造函数未调用本句,故本句对子类无影响
{
System.out.println("fu..."+x);
}
}
class Zi extends Fu
{
Zi()
{
System.out.println("zi run");
}
Zi(int x)
{
this();
System.out.println("zi..."+x);
}
}
运行后 doc窗口出现下面内容,我想问最后那个0是什么?
D:\Demo>javac extendsdemo3.java
D:\Demo>java extendsdemo3
fu run
zi run
zi...3
0
D:\Demo> |
|