`
iloveflower
  • 浏览: 77291 次
社区版块
存档分类
最新评论
  • iloveflower: 呵呵。好好学习。。。。。。。。。。。。
    java 读书
  • Eric.Yan: 看了一点,不过是电子版的……你这一说到提醒我了,还要继续学习哈 ...
    java 读书

State Pattern

 
阅读更多
The pattern encapsulates state into separate classes and delegates to the object representing the current state, we know that behavior changes along with the internal state.
In reality, however, you know that we are using composition to give the appearance of a class change by simply referencing different state objects.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics