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