聚合代理,跟装饰器模式 怎么区分?
How to distinguish aggregation proxy from decorator mode? -PHP Chinese website Q&A-How to distinguish aggregation proxy from decorator mode? -PHP Chinese website Q&A
Let’s take a look and learn.
聚合需要统一接口,装饰器是用一个类去装饰另一个类,无需实现接口
How to distinguish aggregation proxy from decorator mode? -PHP Chinese website Q&A-How to distinguish aggregation proxy from decorator mode? -PHP Chinese website Q&A
Let’s take a look and learn.
聚合需要统一接口,装饰器是用一个类去装饰另一个类,无需实现接口