java - 请问23种设计模式里面有没有委托模式?
巴扎黑
巴扎黑 2017-04-17 14:49:12
0
4
883
巴扎黑
巴扎黑

reply all(4)
小葫芦

23 Three design patterns:
Creative pattern: singleton pattern, abstract factory pattern, builder pattern, factory pattern, prototype pattern.
Structural modes: adapter mode, bridge mode, decoration mode, combination mode, appearance mode, flyweight mode, proxy mode.
Behavioral patterns: template method pattern, command pattern, iterator pattern, observer pattern, mediator pattern, memo pattern, interpreter pattern, state pattern, strategy pattern, chain of responsibility pattern, visitor pattern.
Delegation means that a class contains other classes or interfaces, through which polymorphism is used to achieve some dynamic behaviors. Delegation can only be regarded as a part of the design pattern. Delegation is useful in agents, and in the strategy pattern may also be used.

阿神

The delegation mode is useful in the jvm class loader. Delegation is not equal to proxy

洪涛

Why bother with GOF when there are so many design patterns

阿神

I googled online and found that the delegation mode is not in GOF and is not equivalent to the agency mode. At the beginning of the period, I thought it was the same thing, just another way of saying it.

Here is the introduction

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template