首页 | 本学科首页   官方微博 | 高级检索  
     检索      

抽象工厂模式探讨
引用本文:程裕强.抽象工厂模式探讨[J].玉林师范学院学报,2014(2):82-86.
作者姓名:程裕强
作者单位:玉林师范学院数学与信息科学学院,广西玉林537000
摘    要:工厂模式是常用的设计模式,一般分为简单工厂模式、工厂方法模式、抽象工厂模式三类.工厂方法模式是对简单工厂模式推广,抽象工厂模式是对工厂方法模式推广.简单工厂模式和工厂方法模式是针对单个产品族的问题,如果对应于多个产品族,则不宜解决.针对这一问题,本文通过Java语言实现了抽象方法模式来解决多个产品族的问题.

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

Research on Abstract Factory Pattern
Institution:CHEN Yu-qiang (College of Maths & Information Science, Yulin Normal University, Yulin, Guangxi 5370011)
Abstract: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.
Keywords:design pattern  factory pattern  abstract factory pattern
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号