コード例 #1
0
        static void Main()
        {
            var popcornChickenMeal = new PopcornChickenMeal();
            var largeCola = new LargeCola();
            popcornChickenMeal.Print(largeCola);

            var varietyMeal = new VarietyMeal();
            var smallCola = new SmallCola();
            varietyMeal.Print(smallCola);

            Console.WriteLine("-----------------------------------------");
        }
コード例 #2
0
        static void Main()
        {
            var popcornChickenMeal = new PopcornChickenMeal();
            var largeCola          = new LargeCola();

            popcornChickenMeal.Print(largeCola);

            var varietyMeal = new VarietyMeal();
            var smallCola   = new SmallCola();

            varietyMeal.Print(smallCola);


            Console.WriteLine("-----------------------------------------");
        }