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

            c.Play();
            Game g = new Football();

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

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

            Console.ReadKey();
        }