public static void Main() { Chef cooker = new Chef(); Potato potato = new Potato(); if (potato != null && potato.IsPeeled && potato.IsRotten) { cooker.Cook(potato); } }
static void Main(string[] args) { IVegetable carrot = new Carrot(); IVegetable patato = new Patato(); IVegetable paper = new Paper(); IVegetable vegetables = new Vegetables(); IAppearance bowl = new Bowl(); IAppearance steamer = new Steamer(); Chef chef = new Chef(); chef.Wash(); chef.Cut(); chef.Prepare(bowl); chef.Cook(steamer); chef.Serve(); }
public static void Main() { var chef = new Chef(); var bowl = chef.Cook(); }
static void Main() { var chef = new Chef(); chef.Cook(); }