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