In the template of the exercise the method getMarks() is defined as:
int GetMarks(int marknumber)
However the method returns the value of members mark1 or mark2 which are float. I would expect the return value of the method should also be float, not int.
Course: Educative: Interactive Courses for Software Developers
Lesson: Educative: Interactive Courses for Software Developers