static void Main(string[] args) { IStudentObserver Breedlove = new Professor(); IStudentObserver Jane = new Spouse(); Student Cal = new Student(); Cal.Attach(Breedlove); Cal.Attach(Jane); Cal.DoWork(); }
static void Main(string[] args) { IStudentObserver Breedlove = new Professor(); IStudentObserver Jane = new Spouse(); Student Cal = new Student(); Cal.Attach(Breedlove); Cal.Attach(Jane); Cal.DoWork(); }