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.ShowCricketDetails(11, "India", "John Wright");
            show.ShowCricketDetails(11, "Australia", "John Buchanan");
            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine("------------FootBall Information----------");
            show.ShowFootballDetails(11, "Spain", "Spanish League");
            show.ShowFootballDetails(11, "England", "English Premiur League");
            Console.WriteLine();
            Console.WriteLine();
            Game obj = new Game();

            obj.WorldCup("India", "Cricket");
            obj.WorldCup("Spain", "Football");
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Cricket india = new Cricket();
            Cricket aus   = new Cricket();

            FootBall england = new FootBall();
            FootBall spain   = new FootBall();

            ShowGameDetails d = new ShowGameDetails();

            Console.WriteLine("-----------------Cricket Information----------------------");
            d.ShowCricketDetails("India", 11, "Ravi Shastri");
            d.ShowCricketDetails("Australia", 11, "Micle Clark");
            Console.WriteLine();
            Console.WriteLine();

            Console.WriteLine("-----------------FootBall Information----------------------");
            d.ShowFootBallDetails("England", 14, "English League");
            d.ShowFootBallDetails("Spain", 13, "Spainish League");
            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine();


            Game g = new Game();

            g.Year = 2011;
            g.WorldCup("India", "Cricket");
            g.WorldCup("Spain", "Football");
            Console.ReadLine();
        }