search

Home  >  Q&A  >  body text

聚合代理,跟装饰器模式 怎么区分?

聚合代理,跟装饰器模式 怎么区分?

phpcn_u251phpcn_u2512960 days ago1393

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:56:01

    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.

    reply
    0
  • 阿神

    阿神2017-01-12 15:05:29

    聚合需要统一接口,装饰器是用一个类去装饰另一个类,无需实现接口

    reply
    0
  • Cancelreply