[单项选择题] 设有下面两个类的定义: class Person long id;// 身份证号 String name://姓名 class Student extends Person int score://成绩 int getScore( ) return score; 则类Person和类Student的关系是( )。
A.包含关系B.继承关系C.关联关系D.无关系
正确答案:B

[单项选择题] 设有下面两个类的定义: class Person long id;// 身份证号 String name://姓名 class Student extends Person int score://成绩 int getScore( ) return score; 则类Person和类Student的关系是( )。
A.包含关系B.继承关系C.关联关系D.无关系
正确答案:B
上一篇 [填空题] 阅读下面代码: import java.awt.*; public class Exam11
下一篇 [问答题] 在名称为Form1的窗体中画三个命令按钮(名称分别为Command1、Command2和Command3,标题分别为“显示”、“