Summary of Design Patterns

Build mode:

Simple Factory: Commonly Used

Abstract Factory: never used

Singleton: Commonly used in management

Builder: Based on an object, modify the properties of the object through different builders to generate objects with different properties

Prototype: like copy construction


Structural Patterns:

management type

Appearance: including various modules, part of the overall structure, management, integrated use

Combination: including a node, one or more, part of the overall structure, additions, deletions, changes, and inspection management


Extended

Decoration: For interface extension, it can be extended through other class objects, or through its own function pointer

Adaptation: When a module is used by dependency, in order to expand the module used, the expansion requirements are achieved through the adapter

Proxy: similar to decoration, both extend their own interface, but the method of passing parameters is different


Bridging: Object and Implementation Separation

Flyweight: Manage common public content objects, extract the internal state, and change the use through the external state



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324818585&siteId=291194637