/* * Created by: Mo * Created: Friday, July 06, 2007 */ using System; namespace DesignPatterns.Observer { public class MosMotherInLaw : IObserver { #region Constructors public MosMotherInLaw( ) : this( new Mo( ) ) {} public MosMotherInLaw( ISubject sonInLaw ) { _sonInLaw = sonInLaw; _sonInLaw.Add( this ); } #endregion #region Public Methods public void Update( ) { Console.Out.WriteLine( "Why is my son in law looking at cute girls?" ); } #endregion #region Private Fields private ISubject _sonInLaw; #endregion } }