參照:https://cbk419323.blog.csdn.net/article/details/104171307 一肖方、創(chuàng)建型模式 共五種:工廠方法模式孙乖、抽象工廠模式帽撑、...
![240](https://cdn2.jianshu.io/assets/default_avatar/15-a7ac401939dd4df837e3bbf82abaa2a8.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
參照:https://cbk419323.blog.csdn.net/article/details/104171307 一肖方、創(chuàng)建型模式 共五種:工廠方法模式孙乖、抽象工廠模式帽撑、...
解釋器模式(InterpreterPattern) 1. 概念 Given a language, define a representation for its gramm...
中介者模式(MediatorPattern) 1. 概念 Define an object that encapsulates how a set of objects in...
觀察者模式(Observer Pattern) 1. 概念 Define a one-to-many dependency between objects so that w...
訪問者模式(VisitorPattern) 1. 概念 Represent an operation to be performed on the elements of a...
備忘錄模式(MementoPattern) 1. 概念 Without violating encapsulation骏融, capture and externalize an...
責(zé)任鏈模式(Chain of ResponsibilityPattern) 1. 概念 Avoid coupling the sender of a request to i...
策略模式(Strategy Pattern) 1. 概念 Define a family of algorithms,encapsulate each one,and mak...
迭代器模式(Iterator Pattern) 1. 概念 Provide a way to access the elements of an aggregate obje...
模板方法模式(TemplateMethod) 1. 概念 Define the skeleton of an algorithm in an operation, defer...
狀態(tài)模式(Command Pattern) 1. 概念 Encapsulate a request as an object, thereby letting you par...
狀態(tài)模式(StatePattern) 1. 概念 Allow an object to alter its behavior when its internal state ...
橋接模式(Bridge Pattern,橋梁模式) 1. 概念 Decouple an abstraction from its implementation so that...
組合模式(Composite Pattern) 1. 概念 Composite Pattern (又叫 部分-整體模式伦腐,Part-Whole), composite obje...
外觀模式(Facade Pattern失都,門面模式) 1. 概念 Facade Pattern: Provide a unified interface to a set of...
裝飾者模式(DecoratorPattern) 1. 概念 Attach additional responsibilities to an object dynamical...
適配器模式(Adapter Pattern) 1. 概念 Convert the interface of a class into another interface cl...
享元模式(FlyweightPattern) 1. 概念 Use sharing to support large numbers of fine-grained objec...
代理模式(Proxy Pattern) 1. 概念 Provide a surrogate or placeholder for another object to cont...
建造者模式(Builder Pattern) 1. 概念 Separate the construction of a complex object from its rep...