public void LeaveCourse(Course course) { if (course == null) { throw new InvalidOperationException("Invalid course! Course cannot be null!"); } course.RemoveStudentFromCourse(this); }
public bool LeaveCourse(Course course) { course.RemoveStudentFromCourse(this); return true; }
public bool LeaveCourse(Course course) { course.RemoveStudentFromCourse(this); return(true); }