コード例 #1
0
 public void MakePizza()
 {
     dough.AddCheese(cheese);
     dough.AddSauce(sauce);
     dough.AddTopping(topping);
     oven.SetTemperature(450);
     oven.SetTimer(15);
     oven.Cook(dough);
 }
コード例 #2
0
 public void MakePizza()
 {
     Dough.AddSauce(Sauce);
     Dough.AddCheese(Cheese);
     Dough.AddTopping(Topping);
     Oven.SetTemperature(425);
     Oven.SetTimer(10);
     Oven.Cook(Dough);
     System.Console.WriteLine("Made Pizza with :" + Topping.DescribeTopping());
 }
コード例 #3
0
 public void MakePizza()
 {
     Console.WriteLine("Making pizza.");
     _dough.AddSauce(_sauce);
     _dough.AddCheese(_cheese);
     _dough.AddTopping(_topping);
     Console.WriteLine("");
     _oven.SetTemperature(425);
     _oven.SetTimer(20);
     _oven.Cook(_dough);
 }