首页 | 官方网站   微博 | 高级检索  
     

Java程序中的设计模式以及应用举例
引用本文:王芳,耿祥义,赵震.Java程序中的设计模式以及应用举例[J].数字社区&智能家居,2007,2(8):438-439.
作者姓名:王芳  耿祥义  赵震
作者单位:大连交通大学计算机应用技术 辽宁大连116028
摘    要:随着java语言被越来越广泛的应用,java中的设计模式已经成为面向对象设计和编程的主要内容,设计模式是一个非常强大的工具,它利用了程序员所积累的知识和经验来解决人们经常遇到的编程问题,且提供了易于重用且可维护的高级方案,如果我们灵活的使用设计模式,它可以节省我们大量的时间。本文首先介绍了设计模式的概念和它所包括的一些要素,然后介绍了几种典型的设计模式,最后举例说明工厂方法模式的应用情况。

关 键 词:Java  设计模式  工厂方法  抽象工厂
文章编号:1009-3044(2007)08-20438-0c
修稿时间:2007年4月10日

The Design Pattern of Java Procedure as Well as Application Example
WANG fang,GENG Xiang-yi,ZHAO Zhen.The Design Pattern of Java Procedure as Well as Application Example[J].Digital Community & Smart Home,2007,2(8):438-439.
Authors:WANG fang  GENG Xiang-yi  ZHAO Zhen
Abstract:With the java language widespread use, java's design pattern has already become the main content of the object-oriented design and the programming. The design pattern is an extremely powerful tool, and it has used the knowledge and the experience which the programmer accumulates to solve the programming problems which the people meet frequently, and it also has provided the high-level plan that is easy to reuse and maintain. If we use design pattern nimbly, it may save us much time. This article firstly introduces the design pattern concept and includes some essential factors, then it introduces several kinds of typical design patterns, and finally it illustrates application situation of the factory method pattern.
Keywords:java  design pattern  factory mothod  abstract factory
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号