首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
In looking at the class structure of an entire system, we may find that its inheritance (1) is either wide and shallow, narrow a
In looking at the class structure of an entire system, we may find that its inheritance (1) is either wide and shallow, narrow a
admin
2009-09-04
87
问题
In looking at the class structure of an entire system, we may find that its inheritance (1) is either wide and shallow, narrow and deep, or balanced. Class structures that are wide and shallow usually represent forests of (2) classes that can be mixed and matched. Class structures that are narrow and deep represent trees of classes that are related by a common ancestor. There are advantages and disadvantages to each approach. Forests of classes are more loosely (3) , but they may not exploit all the commonality that exists. Trees of classes exploit this commonality, so that individual classes are smaller than in forests. However, to understand a particular class, it is usually necessary to understand the meaning of all the classes it inherits from or uses. The proper shape of a class structure is highly problem-dependent. We must make similar trade-offs among inheritance, aggregation, and using relation- ships. For example, should the class Car inherit, contain, or use the classes named Engine and Wheel? In this case, we suggest that an (4) relationship is more appropriate than inheritance relationship. Meyer states that between the class A and B," (5) is appropriate if every instance of B may also be viewed as an instance of A. The client relationship is appropriate when every instance of B simply possesses one or more attributes of A". From another perspective, if the behavior of an object is more than the sum of its individual parts, then creating an aggregation relationship rather than an inheritance relationship between the appropriate classes is probably superior.
选项
A、free-standing
B、alone
C、only
D、lonely
答案
A
解析
转载请注明原文地址:https://www.kaotiyun.com/show/arxZ777K
本试题收录于:
软件设计师上午基础知识考试题库软考中级分类
0
软件设计师上午基础知识考试
软考中级
相关试题推荐
项目管理工具中,将网络方法用于工作计划安排的评审和检查的是(13)。
软件设计的主要任务是设计软件的结构、过程和模块,其中软件结构设计的主要任务是要确定(11)。
若信号带宽为40Hz,理想信道可以达到的最大码元速率为(17)。若码元可以取8种离散值,则一个码元携带的信息量为(18)比特,此时,理想信道传输信号带宽为40Hz的数据速率为(19)。
PPP协议是数据链路层的一个协议,它被广泛用于接入Internet中。PPP协议是一个(53)。帧长为整数个字节。它克服了SLIP协议的缺点,可以进行协商,并且(54)。它可以分成3个层次,其中的网络层协议被称为(55),包括了不同的网络层协议。利用PPP
两个人利用Netphone通话时,对语言格式的解释是由(19)完成的。
简述什么是ISDN?依据ISO/OSI参考模型对无线扩频网络设备进行分类,可以分为哪几种类型?用无线扩频设备实现网络互连需要何种配套设备?
目前,国内短消息服务平台按照接入方式主要可分为哪两种?请简要说出网关服务器与短消息服务过程。
Networks can be interconnected by different devices in the physical layer networks can be connected by(1)or hubs. Which just mov
OSPF协议适用于4种网络。下面的选项中,属于广播多址网络(BroadcastMulti-Ac-cess)的是(),属于非广播多址网络(NoneBroadcastMulti-Access)的是()。
路由器命令“Router(config)#access-listldeny192.168.1.1”的含义是____________。
随机试题
想象是创新的心理基础,想象分为有意想象和无意想象。下列情况属于无意想象的是()
凡是酸中毒血浆pH值均小于7.36,凡是碱中毒血浆pH值均大于7.44。
分离分子量相近但等电点不同的蛋白质首选A.纸层析B.等电聚焦电泳C.密度剃度离心D.离子交换层析E.琼脂糖凝胶电泳
晚期妊娠羊水代谢主要途径,哪项正确( )
你考虑病人是若用心电示波监护该病人时,荧光屏上突然出现完全不规则的大波浪状曲线,且QRS波与T波消失。你考虑下列哪项处理措施不妥
关于教育投资规划,下列表述最不恰当的是()。
中国共产党在过渡时期的总路线不包括以下哪一项?()
据最近的统计,在需要同等学历的十个不同的职业中,教师的平均工资五年前排名第九位,而目前上升到第六位;另外,目前教师的平均工资是其他上述职业的平均工资的86%,而五年前只是55%。因此,教师工资相对偏低状况有了很大的提高。上述论证基于以下哪项假设?Ⅰ.近五
Wehavealreadymadeplansforavisit,but________difficultieswiththecarpreventedit.
WhichAttributesofaFoodProductareMostImportanttoConsumersA)TheAustralianstateofVictoriaisinvestinginapro
最新回复
(
0
)