public void JoinStudentInCourse(Student student, Course course) { if (student == null) { throw new ArgumentNullException("student cannot be null"); } if (course == null) { throw new ArgumentNullException("course cannot be null"); } course.Join(student); }