/// <summary> /// Removes Student from enrolled students dictionary and adds a seat. /// </summary> /// <param name="student">Student to be removed from enrolled students.</param> public void WithdrawStudent(Student student) { enrolledStudents.Remove(student.GetUserName()); numSeats++; }
/// <summary> /// Adds Student to enrolled students dictionary and removes a seat. /// </summary> /// <param name="student">Student to be added to enrolled students.</param> public void EnrollStudent(Student student) { enrolledStudents.Add(student.GetUserName(), student); numSeats--; }