public void AttendCourse(Course course) { if (course == null) { throw new InvalidOperationException("Invalid course! Course cannot be null!"); } course.AddStudentToCourse(this); }
public void JoinCourse(Course course) { course.AddStudentToCourse(this.UniqueNumber, this); }
public bool JoinCourse(Course course) { course.AddStudentToCourse(this); return true; }
public bool JoinCourse(Course course) { course.AddStudentToCourse(this); return(true); }