public class Student extends Person {
final int studId;
final String university;
public Student(int id, int birthday, int birthmonth, int birthyear, String name,
int studId, String university) {
super(id, birthday, birthmonth, birthyear, name);
this.studId = studId;
this.university = university;
}
String getStudentInfo() {
return super.getName() + "\nStudent-ID: " + this.studId + "\nUniversitet: " + this.university;
}
}