pattern
mysonghushu
Enjoy your life!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
my idea about visitor pattern
Visitor Pattern Design PatternVisitor PatternTwo things: add new operation to Operate one object’s attribute member without change its original class structure(in other words, without change origina原创 2017-10-17 17:27:09 · 447 阅读 · 0 评论 -
Visitor in Java
Visitor Code SampleVisitor design pattern 1. Add an accept(Visitor) method to the “element” hierarchy 2. Create a “visitor” base class w/ a visit() method for every “element” type 3. Create a “vi转载 2017-10-17 17:37:04 · 375 阅读 · 0 评论 -
Decorator Design Pattern
reference by Decorator Design PatternIntent Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality. Client-spe转载 2017-10-18 14:09:38 · 439 阅读 · 0 评论
分享