class Parent { Parent() { System.out.println("parent"); } } public class Child extends Parent { Child(String s) { System.out.println(s); } public static void main(String[] args) { Child child = new Child("child"); } } A. child B. child parent C. parent child D. 编译错误 为什么选C
|