Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import enumeration.Gender;
import java.util.ArrayList;
import java.util.List;
public abstract class UniversityMember
{
// final for the ID because it will remain the same for the whole duration of studying or being employed
// PK & FK
private final int id;
private Gender gender;
private String firstName;
private String lastName;
private String placeOfResidence;
private final String birthPlace;
private String officialEmail;
private String privateEmail;
private List<Course> personalCourses = new ArrayList<>();
private boolean isSignedUpForCourse;
public UniversityMember(int id, Gender gender, String firstName, String lastName, String placeOfResidence, String birthPlace,
String officialEmail, String privateEmail, List<Course> personalCourses, boolean isSignedUpForCourse)
{
this.id = id;
this.gender = gender;
this.firstName = firstName;
this.lastName = lastName;
this.placeOfResidence = placeOfResidence;
this.birthPlace = birthPlace;
this.officialEmail = officialEmail;
this.privateEmail = privateEmail;
this.personalCourses = personalCourses;
this.isSignedUpForCourse = isSignedUpForCourse;
}
public abstract boolean signUpForCourse(Course course);
}