Exemplo n.º 1
0
        static void Main(string[] args)
        {
            NYPizzaStore pizzaStore = new NYPizzaStore();
            Pizza        pizza      = pizzaStore.CreatePizza("cheese");

            pizza.Prepare();
            pizza.Bake();
            pizza.Cut();
            pizza.Box();

            Console.WriteLine(pizza.ToString());

            Console.ReadKey();
        }
Exemplo n.º 2
0
        //public List<Pizza> Pizzas { get; set; }



        public override string ToString()
        {
            return(String.Format(Customer.ToString() + Environment.NewLine + Pizza.ToString() + Environment.NewLine + TotalPrice));
        }