摘要
介绍了利用策略模式实现虚拟校园系统多样性的方法.初始的设计是基于继承的,通过父类和子类之间的重写和抽象实现.改进的设计应用了策略模式,区分出系统中会变化部分,获得了良好的可扩展性和可维护性,可以适应将来的升级要求.通过对比这两种设计方式,得出了利用策略模式的优缺点.
The application of Strategy Pattern which implements diversity of virtual campus system is introduced. The original design is based on inheritance and applies override and abstract between superclass and subclass. The improved design applies Strategy Pattern to identify the changable part in the System so as to accommodate it to the future extension and maintenance and satisfy the update requirement. By contrasting both designs the advantages and disadvantages are listed in the end.
出处
《兰州工业高等专科学校学报》
2011年第6期11-13,31,共4页
Journal of Lanzhou Higher Polytechnical College
关键词
策略模式
应用
多样性
虚拟校园
Strategy Pattern
application
diversity
virtual campus