class Person{} class Student extends Person{ public int id; public int score; public String name; public int getScore() { return score; }
class Person{} class Student extends Person{ public int id; public int score; public String name; public int getScore() { return score; }
设有下面两个类的定义: class Person {} class Student extends Person { long id; // 身份证号 int score; // 入学总分 String name; // 姓名 int getScore(){return score;} } 问:类Person和类Student的关系是
设有下面两个类的定义: class Person {} class Student extends Person { long id; // 身份证号 int score; // 入学总分 String name; // 姓名 int getScore(){return score;} } 问:类Person和类Student的关系是
1