注意:此页面搜索的是所有试题
题目内容
(郑州工程技术学院—Java程序设计)
设Derived类为Base类的子类,则如下对象的创建语句中哪个是错误的?
(A)BaseObj=newDerived();
(B)DerivedObj=newBase();
(C)BaseObj=newBase();
(D)DerivedObj=newDerived();
(A)BaseObj=newDerived();
(B)DerivedObj=newBase();
(C)BaseObj=newBase();
(D)DerivedObj=newDerived();
参考答案