Ejemplo n.º 1
0
        static void PizzaPlanetExample()
        {
            Pizza       pizza       = null;
            PizzaPlanet pizzaPlanet = new PizzaPlanet();

            pizza = pizzaPlanet.OrderPizza("falling with style");
        }
Ejemplo n.º 2
0
        static void PizzaExample()
        {
            PizzaStore pizzaPlanet = new PizzaPlanet();

            pizzaPlanet.Name = "PizzaPlanet";

            Pizza pizza = pizzaPlanet.OrderPizza("Galactic Pepperoni");
        }
Ejemplo n.º 3
0
        static void PizzaExample()
        {
            PizzaStore store = new PizzaPlanet();
            // creating a reference to an existing instantiated pizza
            Pizza pizza = store.OrderPizza("pepperoni");



            string name = pizza.Name;

            Console.WriteLine($"The pizza name is {name}");
        }
Ejemplo n.º 4
0
        static void PizzaPlanetStore()
        {
            PizzaPlanet pp = new PizzaPlanet();

            pp.OrderPizza("Galactic Pepperoni");
        }