摘要
分析目前已经提出的一种方法:通过简单工厂方法来扩展抽象工厂,并引进入面向对象设计理论原则,指出其存在缺陷的原因,在此基础上进一步改进,提出通过类注册的方法来实现一种新的抽象工厂的改进,解决添加新种类产品的困难。
Analyses a method that has proposed to improve the drawback, and cites into an object oriented design principles which is called Open Close Principle, points out where the drawback come from, based on these, proposes a method to improve abstract factory by using class registration.
出处
《现代计算机》
2009年第1期103-105,共3页
Modern Computer
关键词
抽象工厂
类注册
简单工厂
设计模式
Abstract Factory
Class Registration
Simple Factory
Design Pattern