public override void Off(Switch sw) { Debug.WriteLine("Turning light off..."); sw.State = new OffState(); }
public override void On(Switch sw) { Debug.WriteLine("Turning light on..."); sw.State = new OnState(); }
public virtual void Off(Switch sw) { Debug.WriteLine("Light is already off."); }