public undone(Doneness state) { CurrentTemp = state.CurrentTemp; Steak = state.Steak; }
public Medium(Doneness state) : this(state.CurrentTemp, state.Steak) { }
public Steak(string beefCut) { _state = new Medium(0, this); }
public Rare(Doneness state) : this(state.CurrentTemp, state.Steak) { }
public Uncooked(Doneness state) { currentTemp = state.CurrentTemp; steak = state.Steak; Initialize(); }
public Steak(string beefCut) { _beefCut = beefCut; _state = new Rare(0.0, this); }
public Burned(Doneness state) : this(state.CurrentTemp, state.Steak) { }