1 | public class Student {↵ | | 1 | public class Account {
↵
|
2 | private long studentNumber;↵ | | 2 | private ↵
|
3 | private String name;↵ | | |
|
4 | private Course preferredCourse;↵ | | |
|
5 | private Set enrolments = new HashSet();↵ | | |
|
|
6 | public String getNa↵ | | 3 | String accountId;↵
|
| | | 4 | private Customer customer;↵
|
| | | 5 | private Person person;↵
|
| | | 6 | private char type;↵
|
| | | 7 | /**↵
|
| | | 8 | * @return Returns the user.↵
|
| | | 9 | */↵
|
7 | me() {↵ | | 10 | public Customer getCustomer() {
↵
|
8 | return name;↵ | | 11 | return ↵
|
9 | }↵ | | |
|
| | | 12 | customer;↵
|
| | | 13 | }↵
|
| | | 14 | /**↵
|
| | | 15 | * @param user The user to set.↵
|
| | | 16 | */
↵
|
10 | public void setName(String name) {↵ | | 17 | public void setCustomer(Customer user) {
↵
|
11 | this.name = name;↵ | | 18 | this.customer = ↵
|
12 | }↵ | | |
|
| | | 19 | user;↵
|
| | | 20 | }↵
|
| | | 21 | /**↵
|
| | | 22 | * @return Returns the accountId.↵
|
| | | 23 | */
↵
|
13 | public long getStudentNumber() {↵ | | 24 | public String getAccountId() {
↵
|
14 | return studentNumber;↵ | | 25 | return ↵
|
15 | }↵ | | |
|
|
16 | public void setStudentNumber(long studentNumber↵ | | 26 | accountId;↵
|
| | | 27 | }↵
|
| | | 28 | /**↵
|
| | | 29 | * @param accountId The accountId to set.↵
|
| | | 30 | */↵
|
17 | ) {↵ | | 31 | public void setAccountId(String accountId) {
↵
|
18 | this.studentNumber = studentNumber;↵ | | 32 | this.↵
|
19 | }↵ | | |
|
|
20 | public Course getPreferredCours↵ | | 33 | accountId = accountId;↵
|
| | | 34 | }↵
|
| | | 35 | /**↵
|
| | | 36 | * @return Returns the type.↵
|
| | | 37 | */↵
|
21 | e() {↵ | | 38 | public char getType() {
↵
|
22 | return preferredCourse;↵ | | 39 | return ↵
|
23 | }↵ | | |
|
|
24 | public void setPreferredCourse(Course preferredCours↵ | | 40 | type;↵
|
| | | 41 | }↵
|
| | | 42 | /**↵
|
| | | 43 | * @param type The type to set.↵
|
| | | 44 | */↵
|
25 | e) {↵ | | 45 | public void setType(char type) {
↵
|
26 | this.preferredCourse = preferredCourse;↵ | | 46 | this.type = type;
↵
|
27 | }↵ | | 47 | }↵
|
| | | 48 |
↵
|
28 | public Set getEnrolments() {↵ | | 49 | public Person getPerson() {
↵
|
29 | return enrolments;↵ | | 50 | return ↵
|
30 | }↵ | | |
|
| | | 51 | person;↵
|
| | | 52 | }↵
|
| | | 53 |
↵
|
31 | public void setEnrolments(Set employments) {↵ | | 54 | public void setPerson(Person person) {
↵
|
32 | this.enrolments = employments;↵ | | 55 | this.person = person;
↵
|
33 | | | 56 |
|