Ejemplo n.º 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("-----------------------------------------");
        }
Ejemplo n.º 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("-----------------------------------------");
        }