- 5
- 0
- 约1.57万字
- 约 59页
- 2020-11-10 发布于四川
- 举报
* 问题: 在对象适配器模式中,能否同时适配两个类? If there are two existing classes Adaptee1 and Adaptee2, can we still use the object adapter pattern as below? Class adapter pattern- question operation1():void operation2():void operation3():void interface Target operation1():void Adaptee1 operation1(): void (在方法中调用operation1) operation2(): void (在方法中调用operation2) operation3(): void (写全新的代码) Adapter operation2():void Adaptee2 implement Call,aggregation Call,aggregation Answer: Yes Back * 使用适配器模式进行设计的例子 * 使用适配器模式进行设计的例子 Example 3. 离架软件,功能不足,欲增加新功能。 Suppose that we have purchased an off-shelf class InfoVa
您可能关注的文档
- 摄影测量学课件 3.5.5单片空间后方交会 - 单片空间后方交会.ppt
- 摄影测量学课件 3.4.3共线条件方程 - 共线条件方程.ppt
- 摄影测量学课件 3.3.3像空间直角坐标变换 - 像空间直角坐标变换.ppt
- 摄影测量学课件 3.2.1航摄影像的方位元素 - 航摄影像的方位元素.ppt
- 摄影测量学课件 3.1.1摄影测量常用坐标系 - 摄影测量常用坐标系.ppt
- 摄影测量学课件 2.3.1透视变换成像原理 - 透视变换成像原理.ppt
- 摄影测量学课件 2.2.1航摄像片的重要点线面 - 航摄像片的重要点线面.ppt
- 摄影测量学课件 2.1.2航空摄影的基本要求 - 航空摄影的基本要求.ppt
- 摄影测量学课件 1.2.3摄影测量学的发展历程 - 摄影测量学的发展历程.ppt
- 摄影测量学课件 1.1.3摄影测量学的基本概念 - 摄影测量学的基本概念.ppt
原创力文档

文档评论(0)