Main
Hello
Algorithm
Note
Mark
Tools
AI
Hello
Algorithm
Note
Mark
Tools
AI
Main

pattern

抽象工厂模式(Abstract Factory)
构建者模式(Builder)
工厂方法模式(Factory Method)
原型模式(Prototype)
单例模式(Singleton)
适配器模式(Adapter)
桥接模式(Bridge)
组合模式(Composite Pattern)
装饰者模式(Decorator)
外观模式(Facade)
享元模式(Flyweight Pattern)
代理模式(Proxy)
职责链模式(Chain of Responsibility)
命令模式(Command)
解释器模式(Interpreter)
迭代器模式(Iterator)
中介者模式(Mediator)
备忘录模式(Memento)
观察者模式(Observer)
状态模式(State)
策略模式(Strategy)
模板方法模式(Template Method)
访问者模式(Visitor)
Structures

#组合模式(Composite Pattern)

又叫部分整体模式,是用于把一组相似的对象当作一个单一的对象。组合模式依据树形结构来组合对象,用来表示部分以及整体层次。这种类型的设计模式属于结构型模式,它创建了对象组的树形结构。

Last Updated: 2025/11/1 14:33:59

Previous Page桥接模式(Bridge)
Next Page装饰者模式(Decorator)