Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Oven            oven            = new Oven(40);
            OverHeatSolving overheatsolving = new OverHeatSolving(oven);

            oven.OvenStart();
        }
Exemplo n.º 2
0
 public OverHeatSolving(Oven oven)
 {
     oven.OverHeat += _overHeatSolving;
     oven1          = oven;
 }