public override void Update(Subject s) { Console.WriteLine("{0} observed that {1} changed", GetType().Name, s.GetType().Name); }
public void Update(Subject subject) { if (subject is SubjectConcrete) { Console.WriteLine("Notified {0} of {1}'s " + " values are '{2}' and '{3}'.", _name, subject.GetType().Name, subject.SomeValue, subject.SomeOtherValue); } }