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

JAVA类库中的策略模式
引用本文:杨年华,张礼平.JAVA类库中的策略模式[J].计算机应用与软件,2004,21(1):20-21,82.
作者姓名:杨年华  张礼平
作者单位:华东理工大学计算机科学与技术系,上海,200237
摘    要:为了使程序具有一个良好、灵活的结构,充分的可扩展性和代码的可重用性,设计模式在面向对象程序设计中的应用具有重要的意义和作用。本文以策略模式在JAVA类库中的应用为例,具体介绍策略模式问题的产生、解决和效果。最后以实例说明运用此设计模式带来软件扩充和复用的方便性。

关 键 词:面向对象  程序设计  体系结构  策略模式  Java语言  类库

STRATEGY PATTERN IN JAVA CLASS LIBRARY
Yang Nianhua Zhang Liping.STRATEGY PATTERN IN JAVA CLASS LIBRARY[J].Computer Applications and Software,2004,21(1):20-21,82.
Authors:Yang Nianhua Zhang Liping
Abstract:Design pattern in very important and useful in OO program design to get fine and flexible structure,satisfying extensibility and code reusing.This paper describes the problem from which the strategy pattern originated,the solution of the problem and the effect of the solution by analyzing the case which uses strategy pattern in JAVA class library.Finally,it gives an example and analyses the advantages in software extensibility and code reusing as a result of using strategy pattern in software design.
Keywords:Design pattern Strategy pattern Reuse technology  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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