Ejemplo n.º 1
0
        public void AddStudent(Student st)
        {
            if (_students.Count == MaxCountOfStudents)
                throw new ClassFullException("Can't add student, cuz class is full");

            if (st.IsValid())
                _students.Add(st);
        }
Ejemplo n.º 2
0
 public void RemoveStudent(Student st)
 {
     _students.Remove(st);
 }