コード例 #1
0
ファイル: Kitchen.cs プロジェクト: bahtev/TelerikAcademy
        public static void Main()
        {
            Chef cooker = new Chef();
            Potato potato = new Potato();

            if (potato != null && potato.IsPeeled && potato.IsRotten)
            {
                cooker.Cook(potato);
            }
        }
コード例 #2
0
ファイル: Kitchen.cs プロジェクト: Jukata/TelerikAcademy
        public static void Main()
        {
            Chef   cooker = new Chef();
            Potato potato = new Potato();

            if (potato != null && potato.IsPeeled && potato.IsRotten)
            {
                cooker.Cook(potato);
            }
        }
コード例 #3
0
ファイル: KitchenDemo.cs プロジェクト: Plugarov/Telerik-Repo
        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();
        }
コード例 #4
0
ファイル: Cooking.cs プロジェクト: mpenchev86/Telerik-Academy
 public static void Main()
 {
     var chef = new Chef();
     var bowl = chef.Cook();
 }
コード例 #5
0
ファイル: Chef.cs プロジェクト: slop3n/TelerikAcademy
 static void Main()
 {
     var chef = new Chef();
     chef.Cook();
 }
コード例 #6
0
ファイル: Cooking.cs プロジェクト: mpenchev86/Telerik-Academy
 public static void Main()
 {
     var chef = new Chef();
     var bowl = chef.Cook();
 }