public void Notify() { foreach (var ob in observers) { IObserver temp = (IObserver)ob; temp.AddStudent(student); } }