Ejemplo n.º 1
0
        public override PepperoniPizza MakePepperoniPizza()
        {
            var ingridients = new List<string> { "old salami", "green tomatoes" };

            var pizza = new PepperoniPizza(ingridients, this.Name);
            return pizza;
        }
        public override PepperoniPizza MakePepperoniPizza()
        {
            var ingridients = new List<string>();
            ingridients.Add("tomatoes");
            ingridients.Add("pepperoni");
            ingridients.Add("salami");

            var pizza = new PepperoniPizza(ingridients, this.TheName);
            return pizza;
        }
Ejemplo n.º 3
0
        public override PepperoniPizza MakePepperoniPizza()
        {
            var ingridients = new List <string>();

            ingridients.Add("old salami");
            ingridients.Add("green tomatoes");

            var pizza = new PepperoniPizza(ingridients, this.Name);

            return(pizza);
        }