2010年3月7日

设计模式学习总结10 - 行为型5 - State状态模式

摘要: State状态模式(行为型)作用状态模式可以看作是策略模式的动态版本。当对象状态发生变化时,它的行为也装换成另一组操作了。通过在一个体系中切换对象的子类实现状态变化和行为变换。Rolethe State pattern, can be seen as a dynamic version of the Strategy pattern. When the state inside an object... 阅读全文

posted @ 2010-03-07 19:23 Utopia Coming 阅读(1529) 评论(1) 推荐(0) 编辑

导航