Exemplo n.º 1
0
        static void Order2()
        {
            IPizza         pizza    = new CheseLover();
            AExtraServings servings = new ExtraSauce(pizza);

            Console.WriteLine("Order Title: " + servings.Description());
            Console.WriteLine("Bill: " + servings.Bill() + "\n\n\n");
        }
Exemplo n.º 2
0
        static void Order4()
        {
            IPizza pizza = new FourSeason();

            pizza = new ExtraTopping(pizza);
            pizza = new ExtraSauce(pizza);
            Console.WriteLine("Order Title: " + pizza.Description());
            Console.WriteLine("Bill: " + pizza.Bill() + "\n\n\n");
        }