Exemple #1
0
        public void AttendCourse(Course course)
        {
            if (course == null)
            {
                throw new InvalidOperationException("Invalid course! Course cannot be null!");
            }

            course.AddStudentToCourse(this);
        }
Exemple #2
0
        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;
 }
Exemple #5
0
 public bool JoinCourse(Course course)
 {
     course.AddStudentToCourse(this);
     return(true);
 }
 public void JoinCourse(Course course)
 {
     course.AddStudentToCourse(this.UniqueNumber, this);
 }