搜题
问题   更新时间2023/4/3 12:59:00

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

王老师:19139051760(拨打)