Esempio n. 1
0
        static void Main(string[] args)
        {
            Game game = new Cricket();

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

            Console.ReadKey();
        }
Esempio n. 2
0
        public static void Demo()
        {
            Football f = new Football();

            f.Play();

            Baseball b = new Baseball();

            b.Play();
            Console.Read();
        }