posts - 37,comments - 7,trackbacks - 0
          think of Simple Factory as a one shot deal, while with Factory Method your are creating a framework that let's the subclasses decide which implementation will be used. Simple Factory gives you a way to encapsulate object creation, but doesn't give you the flexibility of the Factory Method because there is no way to vary the products your're creating.
          posted on 2005-08-11 17:16 Dave 閱讀(86) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 藁城市| 浪卡子县| 广饶县| 布尔津县| 卢氏县| 鄱阳县| 西城区| 陆河县| 塔城市| 朝阳市| 永安市| 淮安市| 清河县| 兴和县| 达拉特旗| 安图县| 元江| 静宁县| 达尔| 马山县| 大丰市| 疏勒县| 云安县| 晋中市| 罗甸县| 交口县| 曲水县| 闵行区| 木里| 乌兰县| 阿拉善左旗| 玉田县| 新乡县| 太白县| 东阿县| 卢氏县| 西林县| 荔浦县| 台江县| 仁怀市| 东兰县|