首页 > 其他 > 详细

设计模式学习每天一个——Strategy模式

时间:2014-09-16 12:25:50      阅读:139      评论:0      收藏:0      [点我收藏+]

The Strategy Pattern is a design pattern to encapsulate the variants (algorithms) and swap them strategically to alter system behavior without changing its architecture. According to GoF, Strategy Pattern is intended to, Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.

Strategy Pattern has three participants that include Strategy, Concrete Strategy and Context.

设计模式学习每天一个——Strategy模式

原文:http://www.cnblogs.com/windy86/p/3974465.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!