예제 #1
0
 public void AddStudentToClass(Student stud)
 {
     if(!Students.Contains(stud))
     {
         Students.Add(stud);
     }
     if(Students.Count == MinAttendants)
     {
         OnGoalReached();
     }
 }
예제 #2
0
 public void RemoveStudent(Student stud)
 {
     if(Students.Contains(stud))
     {
         Students.Remove(stud);
     }
 }