예제 #1
0
 public void Pull(CeilingFan fan)
 {
     fan.SetState(new Off());
     Console.WriteLine("Fan is turning [OFF]...");
 }
예제 #2
0
 public void Pull(CeilingFan fan)
 {
     fan.SetState(new High());
     Console.WriteLine("Fan is working at [High] speed...");
 }