public class FatherClass
{
public FatherClass()
{
System.out.println(“FatherClass Create“);
}
}
子类:
public class ChildClass extends FatherClass
{
public ChildClass()
{
System.out.println(“ChildClass Create“);
}
public static void main(String[] args)
{
FatherClass fc = new FatherClass();
ChildClass cc = new ChildClass();
}
}
请问输出结果为: