题目:在Java中,有如下两个类Student和 Person。如果Student是Person 的 子类,则下列声明对象x的语句中错误的是( )。
A. Person x = new Person();
B. Person x = new Student();
C. Student x = new Student();
D. Student x = new Person();
答案:评论后可见此内容
推荐使用我们的公众号搜索题目,题目更全,检索更方便。支持语音、图片、文字等多种搜索方式。