Example #1
0
 //охлаждаем воду
 public void Cool()
 {
     state = state.Cool();
 }
Example #2
0
 //греем воду
 public void Heat()
 {
     state = state.Heat();
 }
Example #3
0
 public Water()
 {
     state = state = new LiquidWater();
 }