Implemented all methods marked with WIP
This commit is contained in:
@@ -9,11 +9,14 @@ import java.util.List;
|
||||
|
||||
public class Student implements Serializable {
|
||||
|
||||
public Student(String name, String surname, Group group, Faculty faculty) {
|
||||
public Student(String name, String surname, Group group, Faculty faculty, Date birth, Date enrol) {
|
||||
this.name = name;
|
||||
this.surname = surname;
|
||||
this.fullname = name + " " + surname;
|
||||
this.group = group;
|
||||
this.faculty = faculty;
|
||||
this.dateOfBirth = birth;
|
||||
this.enrollmentDate = enrol;
|
||||
this.FSD = new FullStudentData(name, surname, group.getName(), faculty.getName());
|
||||
}
|
||||
|
||||
@@ -116,4 +119,9 @@ public class Student implements Serializable {
|
||||
this.dateOfBirth = dateOfBirth;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return fullname;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user