Beispiel #1
0
        static void Main(string[] args)
        {
            PapaJohns pa = new PapaJohns();

            pa.Sauce = "Tomato";
            pa.Pork1 = "Italian Sausage";
            pa.Veg1  = "Mushrooms";

            pa.PrintToppings();


            Console.WriteLine("***********");


            PizzaHut ph = new PizzaHut();

            ph.Sauce  = "Marinara";
            ph.Bread1 = "Stuffed Crust";
            ph.Meat1  = "Ground Beef";
            ph.PrintToppings();

            Console.WriteLine("***********************");



            Console.ReadLine();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            PapaJohns pa = new PapaJohns();

            pa.Sauce = "Tomato";
            pa.Pork1 = "Chicken";
            pa.Veg1  = "Green pepper";
            pa.PrintToppings();

            PizzaHut ph = new PizzaHut();

            ph.Sauce  = "Marinara";
            ph.Meat1  = "Ground Beef";
            ph.Bread1 = "Stuffed Crust";
            ph.PrintToppings();

            Console.ReadLine();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            PapaJohns pj = new PapaJohns();
            PizzaHut  ph = new PizzaHut();

            pj.Sauce = "Tomato";
            pj.Pork1 = "Italian Sausage";
            pj.Veg1  = "Mushrooms";
            pj.PrintToppings();

            Console.WriteLine();

            ph.Sauce  = "Marinara";
            ph.Bread1 = "Zesty Crust";
            ph.Meat1  = "Chicken";
            ph.PrintToppings();

            Console.ReadLine();
        }