예제 #1
0
        static void Main(string[] args)
        {
            Steak account = new Steak("T-Bone");

            account.IncreaseTemperature(120);
            account.IncreaseTemperature(15);
            account.IncreaseTemperature(15);
            account.DecreaseTemperature(10);
            account.DecreaseTemperature(15);
            account.IncreaseTemperature(20);
            account.IncreaseTemperature(20);
            account.IncreaseTemperature(20);
        }
예제 #2
0
 public Rare(double temperature, Steak steak)
 {
     this.temperature = temperature;
     this.steak       = steak;
     Initialise();
 }
예제 #3
0
 public Uncooked(double temperature, Steak steak)
 {
     this.temperature = temperature;
     this.steak       = steak;
     Initialise();
 }