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) 評論(0)  編輯  收藏

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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 南汇区| 思茅市| 麻城市| 贵南县| 灵台县| 浦江县| 武鸣县| 萨迦县| 探索| 如皋市| 淮南市| 宁都县| 石首市| 衡阳市| 寿宁县| 昌乐县| 绥棱县| 喀喇沁旗| 富锦市| 巴里| 新源县| 马尔康县| 龙川县| 扎兰屯市| 舞钢市| 柳河县| 玉溪市| 福安市| 大姚县| 涡阳县| 贡嘎县| 巴彦淖尔市| 灵石县| 南安市| 筠连县| 阿瓦提县| 双鸭山市| 武义县| 东阳市| 霍山县| 杭锦旗|