コード例 #1
0
ファイル: Program.cs プロジェクト: csharpspecialist/TRAINING
        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();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Rustammirzaev606/Training
        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();
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: Rgreene121/Training
        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();
        }
コード例 #4
0
        static void Main(string[] args)
        {
            pizzaBogo pb = new pizzaBogo();

            pb.sauce = "Tomato Basil";
            pb.beef1 = "steak";
            pb.veg1  = "Mushroom";
            pb.PrintToppings();
            Console.WriteLine();


            PizzaHut ph = new PizzaHut();

            ph.sauce  = "marinara";
            ph.meat1  = "chicken";
            ph.bread1 = "stuffedcrust";
            ph.PrintToppings();
            Console.WriteLine();
            Console.ReadLine();
        }