随笔分类 - 设计模式
摘要:(Template Method Pattern) Define a skeleton that allows subclasses to provide implementations for one or more of the steps. In short, the methods of o
阅读全文
摘要:Delegate Pattern The basic function is the scheduling and distribution of tasks, separating the assignment and execution of tasks。In short, similar to
阅读全文
摘要:Composite Pattern The purpose is to represent individual objects and composite objects with the same interface, so that the client can handle individu
阅读全文
摘要:Flyweight Pattern The Enjoyable Element mode is a manifestation of object pooling. Similar to thread pools, you can avoid creating and destroying mult
阅读全文
摘要:(Bridge Pattern) Bridge mode is also known as bridge mode and interface mode,It is to separate the abstract part from the concrete implementation part
阅读全文
摘要:(Adapter Pattern) Its function is to turn the interface of one class into another interface that the client expects, so that classes that would otherw
阅读全文
摘要:(Proxy Pattern) Provide proxies to other objects to control access to this object, with the aim of augmenting other objects, in short, similar to AOP,
阅读全文
摘要:(Builder Pattern) Separating the creation of a complex object from its representation makes the same creation process have different representations,
阅读全文
摘要:(Prototype Pattern) Creating a new object by copying, the caller does not need to know the creation details, does not call the constructor, is a creat
阅读全文
摘要:(Singleton Pattern) Make sure that there is absolutely only one instance of a class in any case, and that a global access point is provided。Sometimes
阅读全文
摘要:(factory pattern) Sometimes we may need a lot of code when creating a class, and if we put all this creation logic in a class, it is undoubtedly very
阅读全文

浙公网安备 33010602011771号