摘要: 名称: 解释器模式(Interpreter Pattern)-类行为模式 问题: The Interpreter pattern interprets a language to define a representation for its grammar along with an interp 阅读全文
posted @ 2020-07-01 18:10 diameter 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 名称: 备忘录模式(Memento Pattern)-对象行为模式 问题: The Memento pattern contains a snapshot of the state of an object, so that the object can return to its original 阅读全文
posted @ 2020-07-01 17:46 diameter 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 名称: 访问者模式(Visitor Pattern)-对象行为模式 问题: The Visitor pattern provides a maintainable, easy way to represent an operation to be performed on the elements 阅读全文
posted @ 2020-07-01 17:29 diameter 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 名称: 迭代器模式(Iterator Pattern)-对象行为模式 问题: The iterator pattern provides a consistent way to sequentially access items in a collection that is independent 阅读全文
posted @ 2020-07-01 17:01 diameter 阅读(117) 评论(0) 推荐(0) 编辑