首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
52
问题
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、dispersive
B、cohesion
C、coupled
D、close-knit
答案
C
解析
转载请注明原文地址:https://kaotiyun.com/show/irxZ777K
本试题收录于:
软件设计师上午基础知识考试题库软考中级分类
0
软件设计师上午基础知识考试
软考中级
相关试题推荐
PPP协议是数据链路层的一个协议,它被广泛用于接入Internet中。PPP协议是一个(53)。帧长为整数个字节。它克服了SLIP协议的缺点,可以进行协商,并且(54)。它可以分成3个层次,其中的网络层协议被称为(55),包括了不同的网络层协议。利用PPP
RS-232-C是目前常见的一种接口标准,它是由(32)提供制定的。该标准在OSI模型中属于(33)层协议标准,通过RS-232-C来连接两个设备最少要连接(34)条线。这个标准的设计数据速率是处理(35)bit/s。(35)bit/s条件下,采用RS-4
(12)是关于质量管理体系的一系列标准,有助于企业交付符合用户质量要求的产品。自标准实施之日起,至标准复审重新确认、修订或废止的时间,称为标准的有效期,我国在国家标准管理办法中规定,国家标准的有效期一般为(13)年。我国著作权法中对公民作品的发表权
下列关于OSPF协议的说法不正确的是______。
阅读以下说明,回答下面问题。【说明】某小公司的网络拓扑如图1.6所示。其中路由器具有ISDN模块,公司网络通过ISDN连接到ISP。
在应用服务器关机的情况下,公司员工能连接上Internet吗?简要解释。假设采用ISDN基本速率接口,下载1875K的文件,最快需要多少秒?
下列关于传输服务的面向连接服务和无连接服务说法中正确的是(27)。
Althoughagivenwaveformmaycontainfrequenciesoveraverybroadrange.asapracticalmatteranytransmissionsystemwillbe
Wi-Fi联盟制定的安全认证方案WPA(Wi-FiProtectedAccess)是______标准的子集。
Virtualization is an approach to IT that pools and shares(71)so that utilization is optimized and supplies automatically meet de
随机试题
关于每股净资产指标,下列说法正确的有()。Ⅰ.该指标反映发行在外的每股普通股所代表的净资产成本即账面权益Ⅱ.该指标反映净资产的变现价值Ⅲ.该指标反映净资产的产出能力Ⅳ.该指标在理论上提供了股票的最低价值
女性,29岁。既往肺结核病史2年。近1周来气急、胸闷,刺激性咳嗽。胸部X线平片显示左侧肋膈角变钝,估计胸腔积液的量至少有多少
患者,男性,59岁,工人,1年前无明显诱因出现双腕、双手关节和双膝、踝、足、跖趾关节肿痛,伴晨僵,时间约12分钟,疼痛以夜间明显,影响行动。实验室检查:红细胞沉降率55ram/h,RF(+)。关节X线检查:双手骨质疏松,腕部关节间隙变窄。使用青霉胺治疗。护
下列各项中,属于证券交易所的职责有()。
培训可以为企业带来长期收益,但是不能带来直接收益。()
Whichofthefollowingdoesnotbelongtopre-taskactivities?
下列不属于清朝时期洋务派的是()。
设3阶矩阵,已知r(AB)<r(A),r(AB)<r(B),求a,b的值与r(AB).
计算机的硬件主要包括:中央处理器(CPU)、存储器、输出设备和()。
A、Lightwouldslowdown.B、Telescopesandeyeglasseswouldn’twork.C、Lightwouldbendslightly.D、Telescopesandeyeglasseswou
最新回复
(
0
)