抽象工厂模式探讨  被引量:6

Research on Abstract Factory Pattern

在线阅读下载全文

作  者:程裕强[1] 

机构地区:[1]玉林师范学院数学与信息科学学院,广西玉林537000

出  处:《玉林师范学院学报》2014年第2期82-86,共5页Journal of Yulin Normal University

摘  要:工厂模式是常用的设计模式,一般分为简单工厂模式、工厂方法模式、抽象工厂模式三类.工厂方法模式是对简单工厂模式推广,抽象工厂模式是对工厂方法模式推广.简单工厂模式和工厂方法模式是针对单个产品族的问题,如果对应于多个产品族,则不宜解决.针对这一问题,本文通过Java语言实现了抽象方法模式来解决多个产品族的问题.The factory pattern is a common design pattern, could be further divided into three specific design patterns, simple factory pattern, factory method pattern and the abstract factory pattern. The factoW method pattern is the extension of simple factory pattern, and the abstract factory pattern also is the extension of the factory method pattern. In general, the first two are designed to tackle the single product family, but not to tackle the multi product tiredly. In response to this problem, the java language is applied to implement the abstract factory pattern.

关 键 词:设计模式 工厂模式 抽象工厂模式 

分 类 号:TP39[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象