首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
44
问题
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
软件设计师上午基础知识考试
软考中级
相关试题推荐
A向B发送消息P,并使用公钥体制进行数字签名。设E表示公钥,D表示私钥,则B要保留的证据是(5)。基于数论原理的RSA算法的安全性建立在(6)的基础上。Kerberos是MIT为校园网设计的身份认证系统,该系统利用智能卡产生(7)密钥,可以防止窃听者捕获认
一个Lan拓扑可以使用令牌传递或CSMA/CD控制媒体访问,其拓扑属于下列的(69),若仅使用像令牌传递这样的确定性媒体控制方法,其拓扑属于下列的(70)。
RS-232-C是目前常见的一种接口标准,它是由(32)提供制定的。该标准在OSI模型中属于(33)层协议标准,通过RS-232-C来连接两个设备最少要连接(34)条线。这个标准的设计数据速率是处理(35)bit/s。(35)bit/s条件下,采用RS-4
公开密钥加密是一种(43)。常用的公钥加密算法有(44),它的一个比较知名的应用是(45),这种应用的协商层用公钥方式进行身份认证,记录层涉及到对应用程序提供的信息的分段、压缩、数据认证和加密。
计算机指令系统通常采用多种确定操作数的方式。当操作数直接给出时,这种寻址方式叫作(8),在这种方式下,操作数直接包含在指令中;当操作数的地址由某个指定的变址寄存器的内容与位移量相加得到时,叫作(9);如果操作数的地址是主存中与该指令地址无关的存储单元的内容
在数据通信中,将信道上的模拟信号变换成数字信号的过程称为(26)。
DES加密算法中,函数f的输出是(51)位。DES算法是分组密码,数据分组长度是(52)位。用软件方法实现DES一般至少比RSA快100倍。DES通过(53)方法产生密文。
FrameRelayissimplifiedformof(71),similarinprincipleto(72),inwhichsynchronous,framesofdataareroutedtodifferent
BorderGatewayProtocol(BGP)isinter-autonomoussystem(71)protoc01.BGPisbasedonaroutingmethodcalledpathvectorrouting
TheBorderGatewayProtocol(BGP)isaninterautonomoussystem(6)protocol.TheprimaryfunctionofaBGPspeakingsystemistoex
随机试题
Theyarenotawareofthereasons______peopleareunwillingtodiscussinsurance.
侵蚀性葡萄胎及绒毛膜癌最常见的转移部位是下列哪项
A.丝状乳头B.叶状乳头C.菌状乳头D.轮廓乳头E.C和D舌背上含有味蕾的乳头结构是
男性,36岁,平素健康,单位健康体检时发现AFP升高,但<500μg/L,肝功能正常,HBsAS(+),HBeAS(+),HBcAb(+)。下列检查哪项最能发现小病灶
关于建筑节能的说法,正确的是()。
在分类所得税制度下,为控制税源,所得税的征收常采用( )的形式。
李某系某建设银行某储蓄所的记账员,2002年3月20日下午下班时,李某发现木所的出纳员陈某将2万元营业款遗忘在办公桌抽屉内(未锁)。于是李某趁所内无人之机,返回所内将2万元取出,用报纸包好后藏在自己办公桌下的垃圾袋内,并用纸箱遮住垃圾袋。次日上午案发,赃款
简述社会建构理论对学习的作用。
已知:intn=1:在下面定义引用的语句中,正确的是()。
Peoplelikebeingtrusted.Theyareannoyed,angry,orfeelhurtiftheyareregardedwith【C1】______.Theythinkthattheyare【C
最新回复
(
0
)