设计模式 -- 装饰器模式(Decorator Pattern)
装饰器模式:属于结构型模式,作为现有的类的一个包装,向一个现有的对象添加新的功能,同时又不改变其结构。
2023-11-22885
阅读更多
设计模式 -- 适配器模式(Adapter Pattern)
适配器模式:属于结构型模式,结合了两个独立接口的功能,作为 两个不兼容的接口之间的桥梁 。
2023-11-221090
阅读更多
设计模式 -- 工厂模式(Factory Pattern)
设计模式 -- 工厂模式(Factory Pattern)
2023-11-22863
阅读更多
设计模式 -- 建造者模式(Builder Pattern)
设计模式 -- 建造者模式(Builder Pattern)
2023-11-22838
阅读更多
设计模式 -- 代理模式(Proxy Pattern)
设计模式 -- 代理模式(Proxy Pattern)
2023-11-22828
阅读更多
设计模式 -- 单例模式(Singleton Pattern)
设计模式 -- 单例模式(Singleton Pattern)
2023-11-22853
阅读更多
设计模式 -- 状态模式(State Pattern)
设计模式 -- 状态模式(State Pattern)
2023-11-221034
阅读更多
设计模式 -- 命令模式(Command Pattern)
设计模式 -- 命令模式(Command Pattern)
2023-11-22849
阅读更多
设计模式 -- 责任链模式(Chain of Responsibility Pattern)
设计模式 -- 责任链模式(Chain of Responsibility Pattern)
2023-11-221048
阅读更多
设计模式 -- 策略模式(Strategy Pattern)
设计模式 -- 策略模式(Strategy Pattern)
2023-11-22879
阅读更多