• 2021-04-14 问题

    父类和子类定义如下: class FatherClass { public FatherClass() { System.out.println("FatherClass Create"); } } 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(); } }请问输出结果为:

    父类和子类定义如下: class FatherClass { public FatherClass() { System.out.println("FatherClass Create"); } } 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(); } }请问输出结果为:

  • 2021-04-14 问题

    父类和子类定义如下: class FatherClass { public Fa...Class(); } }请问输出结果为:

    父类和子类定义如下: class FatherClass { public Fa...Class(); } }请问输出结果为:

  • 1