class Undergraduate extends Student {
String specialty;
public Undergraduate(){}
public Undergraduate(String name,int age,String degree,String specialty){
this.name = name;
this.age = age;
this.degree = degree;
specialty = specialty;
为什么写成this.name = name;不行呢 |
|