Ejemplo n.º 1
0
            static void Main(string[] args)
            {
                Cricket         India     = new Cricket();
                Cricket         Australia = new Cricket();
                Football        Spain     = new Football();
                Football        England   = new Football();
                ShowGameDetails show      = new ShowGameDetails();

                Console.WriteLine("------------Cricket Information--------------------------------");
                show.ShowCricket("John Wright", 11, "India");
                show.ShowCricket("John Buchanan", 11, "Australia");
                Console.WriteLine();
                Console.WriteLine();
                Console.WriteLine("------------FootBall Information-----------------------------------");
                show.ShowFootBall("Spanish League", 11, "Spain");
                show.ShowFootBall("English Premiur League", 11, "England");
                Console.WriteLine();
                Console.WriteLine();
                Game g1 = new Game();

                g1.WorldCup("India", "Cricket");
                g1.WorldCup("Spain", "Football");
            }