Exemple #1
0
 public void Cook()
 {
     _cook.Cook();
 }
 static void Cook(ICook cook)
 {
     cook.Cook("");
 }
Exemple #3
0
 public void SetStrategy(ICook cookStrategy)
 {
     cookStrategy.Cook(_food);
 }