Implemented all methods marked with WIP

This commit is contained in:
2023-09-26 22:25:21 +03:00
parent 120669d859
commit 5253bc2947
23 changed files with 908 additions and 648 deletions

View File

@@ -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;
}
}