コード例 #1
0
        public override Scanner FactoryMethod()
        {
            MockScanner ms  = new MockScanner();
            BinScanner  rss = new BinScanner();

            rss.SetScanner(ms);
            return(rss);
        }
コード例 #2
0
        public override Scanner FactoryMethod()
        {
            RealScanner rs  = new RealScanner();
            BinScanner  rss = new BinScanner();

            rss.SetScanner(rs);
            return(rss);
        }