diff options
Diffstat (limited to 'src/portfolio1/ElectiveCourse.java')
-rw-r--r-- | src/portfolio1/ElectiveCourse.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/portfolio1/ElectiveCourse.java b/src/portfolio1/ElectiveCourse.java new file mode 100644 index 0000000..6b23c84 --- /dev/null +++ b/src/portfolio1/ElectiveCourse.java @@ -0,0 +1,8 @@ +public class ElectiveCourse extends Course { + public ElectiveCourse(int ects, String name) { + super(ects, name); + } + public String toString() { + return "Elective " + super.toString(); + } +}
\ No newline at end of file |