16.设有下面两个类的定义:class Person { long id; // 身份证号String name; // 姓名 }class Student extends Person { int score; // 入学总分 int getScore(){return score; }}则类Person和类Student的关系是( )。
(A)包含关系
(B)继承关系
(C)关联关系
(D)上述类定义有语法错误
参考答案
继续答题:下一题


(A)包含关系
(B)继承关系
(C)关联关系
(D)上述类定义有语法错误