• 简单易懂の现代魔法
  • Archives
  • Weibo
  • About
  • Rss
  • 简单易懂の现代魔法
  • Archives
  • Weibo
  • About
  • Rss

装饰器模式(Decorator Pattern)

2025-05-10

structural, decorator

若要扩展功能,装饰者提供了比集成更有弹性的替代方案,动态地将责任附加到对象上。

Read more

桥接模式(Bridge Pattern)

2025-05-10

structural, bridge

桥接(Bridge)是用于把抽象化与实现化解耦,使得二者可以独立变化。

Read more

适配器模式(Adapter Pattern)

2025-05-10

structural, adapter

将一个类的接口转换成客户期望的另一个接口,适配器让原本接口不兼容的类可以相互合作。

Read more

原型模式(Prototype Pattern)

2025-05-10

creational, prototype

原型模式是用于创建重复的对象,同时又能保证性能。这种类型的设计模式属于创建模式,它通过复制现在对象来创建新对象,而不是通过实例化类的方式。

Read more

工厂模式(Factory Pattern)

2025-05-10

creational, factory

顾名思义,一个可以生产很多“类”的类(工厂)。

Read more
<<1...345...32>>
©2016 - 2025 barudisshu, unless otherwise noted.