将一个接口转换成为客户想要的另一个接口,宜采用(46)模式。
A: 适配器(Adapter)
B: 桥接(Bridge)
C: 组合(Composite)
D: 装饰器(Decorator)
A: 适配器(Adapter)
B: 桥接(Bridge)
C: 组合(Composite)
D: 装饰器(Decorator)
举一反三
- 将一个类的接口转换成客户希望的另一个接口。这句话是对下列哪种模式的描述()。 A: 策略模式(Strategies) B: 桥接模式(Bridge) C: 适配器模式(Adapter) D: 单例模式(Singleton)
- 图9—19所示为(46)设计模式,适用于:(47)。 A: 组件(Component) B: 适配器(Adapter) C: 组合(Composite) D: 装饰器(Decorator)
- ()模式通过提供与对象相同的接口来控制对这个对象的访问。 A: 适配器(Adapter) B: 代理(Proxy) C: 组合(Composite) D: 装饰器(Decorator)
- 适配器模式将一个接口转换成客户想要的另一个接口,使接口不的那些类可以一起工作。
- ()将一个类的接口转换成客户需要的另外一个接口 A: 桥接模式 B: 适配器模式 C: 策略模式 D: 职责链模式