class fu
{
fu()
{
System.out.println("a");
}
}
class SubFu extends fu
{
void Subfu()
{
System.out.println("b");
}
}
class zi extends SubFu
{
zi()
{
System.out.println("c");
}
}
public class lianxi
{
public static void main(String[]args)
{
zi c=new zi();
}
}
为什么SubFu()一定要有void?为什么最后结果输出的不是a,b,c? |
|