MandatoryCourse.java
1 |
|
2 |
|
3 |
public class MandatoryCourse extends Course { |
4 |
|
5 |
private int year; |
6 |
|
7 |
public MandatoryCourse(String name, int semester, int studyPoints, int ID, Set<Course> requiredCourses, int year) { |
8 |
super(name, semester, studyPoints, ID, requiredCourses); |
9 |
this.year = year; |
10 |
} |
11 |
|
12 |
public void setYear(int year) { |
13 |
this.year = year; |
14 |
} |
15 |
|
16 |
public int getYear() { |
17 |
return year; |
18 |
} |
19 |
|
20 |
} |
21 |