MandatoryCourse.java
1 |
|
2 |
* A mandatory course, representing a course that must be followed during the study. |
3 |
* @author Maarten Vangeneugden - 1438256 |
4 |
*/ |
5 |
class MandatoryCourse extends Course { |
6 |
private int m_year; // The year in which this course is given. |
7 |
public int year() { |
8 |
return m_year; |
9 |
} |
10 |
public void setYear(int year) { |
11 |
m_year = year; |
12 |
} |
13 |
|
14 |
public MandatoryCourse(String name, int studyPoints, int semester, int ID, boolean pass, int year) { |
15 |
super(name, studyPoints, semester, ID, pass); |
16 |
setYear(year); |
17 |
} |
18 |
} |
19 |