参照:https://cbk419323.blog.csdn.net/article/details/104171307 一、创建型模式 共五种:工厂方法模式、抽象工厂模式、...
![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 一、创建型模式 共五种:工厂方法模式、抽象工厂模式、...
解释器模式(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...
责任链模式(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...
状态模式(Command Pattern) 1. 概念 Encapsulate a request as an object, thereby letting you par...
状态模式(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...