class Fu
{
String num = "w";
Fu()
{
show();
System.out.println(num);
}
void show()
{
System.out.println("55");
}
}
class Zi extends Fu
{
int num = 3;
Zi(){}
void show()
{
System.out.println("zi"+num);
}
}
class Demo3
{
public static void main(String[] args)
{
Zi z = new Zi();
}
}
上课老师讲的一道题,一直搞不懂,哪位大神可以给解释一下?
|