Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Game game;          // Menggunakan Abstract Class

            game = new FPS();
            game.Kategori();

            Console.WriteLine();
            game = new RPG();
            game.Kategori();

            Console.WriteLine();
            game = new RTS();
            game.Kategori();



            /*IGame game;       // Menggunakan Abstract Class
             * game = new FPS();
             * game.Kategori();
             *
             * Console.WriteLine();
             * game = new RPG();
             * game.Kategori();
             *
             * Console.WriteLine();
             * game = new RTS();
             * game.Kategori()*/

            Console.ReadKey();
        }