设计模式之禅笔记——状态模式

1、状态模式的定义java Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.(当一个对象的状态改变时容许其改变行为,这个对象看起来像改变了其类)数据库 状态模式的核心是封装,状态的变动引发了行为的变动,从外部看来就好像这
相关文章
相关标签/搜索