试题详情

欲动态地给一个对象添加职责,宜采用()模式。

A适配器(Adapter)

B桥接(Bridge)

C组合(posite)

D装饰器(Decorator)