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.
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.
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