Beispiel #1
0
        static void Main(string[] args)
        {
            Game game = new Cricket();

            game.Play();
            game = new Football();
            game.Play();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Game game = new Cricket();

            game.Play();
            Console.WriteLine("");
            game = new Football();
            game.Play();

            Console.Read();
        }