Exemple #1
0
 public static void Cool(Hothouse h)
 {
     Console.WriteLine($"Temperature is too hot: {h.Temperature}C");
     h.Temperature -= 5;
 }
Exemple #2
0
 public static void Heat(Hothouse h)
 {
     Console.WriteLine($"Temperature is too cold: {h.Temperature}C");
     h.Temperature += 5;
 }