Exemplo n.º 1
0
        public void AttendCourse(Course course)
        {
            if (course == null)
            {
                throw new InvalidOperationException("Invalid course! Course cannot be null!");
            }

            course.AddStudentToCourse(this);
        }
Exemplo n.º 2
0
        public void AttendCourse(Course course)
        {
            if (course == null)
            {
                throw new InvalidOperationException("Invalid course! Course cannot be null!");
            }

            course.AddStudentToCourse(this);
        }
Exemplo n.º 3
0
 public void JoinCourse(Course course)
 {
     course.AddStudentToCourse(this.UniqueNumber, this);
 }
Exemplo n.º 4
0
 public bool JoinCourse(Course course)
 {
     course.AddStudentToCourse(this);
     return true;
 }
Exemplo n.º 5
0
 public bool JoinCourse(Course course)
 {
     course.AddStudentToCourse(this);
     return(true);
 }
Exemplo n.º 6
0
 public void JoinCourse(Course course)
 {
     course.AddStudentToCourse(this.UniqueNumber, this);
 }