class Fu
{
int num = 4;
Fu()
{
System.out.println("Fu null");
}
Fu(String name)
{
System.out.println("Fu " + name);
}
}
class Zi extends Fu
{
int num = 5;
Zi()
{
System.out.println("Zi null");
}
Zi(String name)
{
super(name);
System.out.println("Zi "+name);
}
Zi(String name, int i)
{
this(name);
System.out.println(i);
}
void show()
{
System.out.println(this.num+"..."+super.num);
}
}
class HeritateDemo
{
public static void main(String [] args)
{
Zi z_1 = new Zi();
Zi z_2 = new Zi("dandan");
Zi z_3 = new Zi("guobing", 7);
}
}