单项选择题

假设Child类为Base类的子类,则下面()创建对象是错误的。

A.Base base=new Child()
B.Base base=new Base()
C.Child child=new Child()
D.Child child=new Base();

热门 试题