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(); }
static void Main(string[] args) { ShowGameDetails obj = new ShowGameDetails(); obj.ShowCricketDetails(); obj.ShowFootballDetails(); Game obj1 = new Game(); Console.WriteLine("--------------------------------------------------"); obj1.WorldCup(); Console.Read(); }