给出如下程序段: public class Person { private String name; public Person( ) { this.name = name; System.out.println("Person:" + name); } public static void main(String[] args) { Person p1 = new Person("Dhee"); Person p2 = new Student("DaLian"); } } class Student extends Person { private String school; public Student(String school) { this.school = school; System.out.println("Student:" + school); } }下面选项正确的是:【选择一项】
A. 编译失败。
B. 编译成功,但运行时发生异常。
C. 编译成功,运行时没有任何数据输出。
D. 编译成功,运行输出:Person:DheeStudent:DaLian
E. 编译成功,运行输出:Person:DheePerson:DheeStudent:DaLian
F. 编译成功,运行输出:Person:DheeStudent:DaLianStudent:DaLian