コード例 #1
0
        public static void Start()
        {
            PlayGame playStationPlayGame = new PlayStationPlayGame();
            PlayGame xBoxPlayGame        = new XBoxPlayGame();

            playStationPlayGame.Start();
            xBoxPlayGame.Start();
        }
コード例 #2
0
        public static void Start()
        {
            //I uses no If-else block By the power of AFP, DI and Polymorhism
            PlayStationPlayGame playStationPlayGame = new PlayStationPlayGame();
            XBoxPlayGame        xBoxPlayGame        = new XBoxPlayGame();

            playStationPlayGame.Start();
            xBoxPlayGame.Start();
        }