Exemplo n.º 1
0
 public Uncooked(Doneness state)
 {
     currentTemp = state.CurrentTemp;
     steak       = state.Steak;
     // initializing the class fields for this state
     Initialize();
 }
Exemplo n.º 2
0
 public Steak(string beefCut)
 {
     _beefCut = beefCut;
     _state   = new Rare(0.0, this);
 }
Exemplo n.º 3
0
 public Rare(Doneness state) : this(state.CurrentTemp, state.Steak)
 {
 }
Exemplo n.º 4
0
 public Medium(Doneness state) : this(state.CurrentTemp, state.Steak)
 {
 }