Design Mode stenographer, design mode classification stenographer
Creation Mode
The static Factory Pattern method returns an instance.
Returns an instance through the Abstract Factory Pattern interface.
Builder Pattern returns multiple instances each time
Singleton Pattern class only has one instance
Implement the ICloneable interface in Prototype Pattern
Structural Mode
Adapter Pattern does not want to implement each interface
Bridge Pattern sets an instance for the Bridge and calls the instance method using the Bridge.
Filter and Criteria Pattern Filter sets by conditions
Composite Pattern tree structure, including parent and child nodes
Decorator Pattern
Facade Pattern: Relationship between computer and CPU and memory
Is the Flyweight Pattern similar to the threadpool management thread?
The Proxy Pattern cannot be used to modify a method. inherit this class to extend this method.
Behavior mode
The Chain of Responsibility Pattern receiver contains a reference from another receiver. If an object cannot process this request, it will send the same request to the next receiver.
Command Pattern data driver, wrapped in an object as a Command, and passed to the called object
The Interpreter mode (Interpreter Pattern) implements an expression interface that interprets a specific context. This mode is used in SQL parsing and symbol Processing engines.
The Iterator Pattern is used to implement the collection class.
The Mediator Pattern reduces the complexity of communication between multiple objects and classes. This Pattern provides an intermediary class that processes communication between different classes and supports loose coupling, easy code Maintenance
Memento Pattern backs up a data record and can be restored later.
Observer Pattern delegate method call
State Pattern calls different methods based on the State.
Default action of Null Object Pattern in Null state
Strategy Pattern add, substract class implements the calculator interface, and a helper class implements computing
The Template Pattern abstract class uses one seal method to call other virtual methods.
The Visitor Pattern uses the accept (visitor) method to accept the visitor to call its own method.