Fields of
Student.java class which extends from
User.java class:
group: String
yearOfStudy: Integer
creditCount: Integer (initially 0);
transfer: Transferable
enrolledCourses: Arraylist of Subject
pastCourses: Arraylist of Subject
marks: Hashmap (key: String courseTitle, value: int mark)
all fields are private;
correct implementation of this class should include:
• constructor with aforementioned fields except arraylists and hashmap;
• getters and setters;
• toString.
• Method transfer which delegates its implementation to one of the Transferable implementations, by using reference transfer