public void AddStudentToClass(Student stud) { if(!Students.Contains(stud)) { Students.Add(stud); } if(Students.Count == MinAttendants) { OnGoalReached(); } }
public void RemoveStudent(Student stud) { if(Students.Contains(stud)) { Students.Remove(stud); } }