首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
53
问题
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://kaotiyun.com/show/arxZ777K
本试题收录于:
软件设计师上午基础知识考试题库软考中级分类
0
软件设计师上午基础知识考试
软考中级
相关试题推荐
在Linux系统的路由配置中,若设置静态路由,则需(17)命令。在使用该命令时为了防止出现错误,可以将网络名字代替网络号,而网络名字可以在文件(18)中定义。为了将手工配置的命令存储下来,在系统启动时自动执行,可以通过(19)来实现。若运行动态路由,则(2
Microsoft’sCOMisasoftwarearchitecturethatallowsapplicationstobebuiltfrombinarysoftwarecomponents.COMistheunde
公开密钥加密是一种(43)。常用的公钥加密算法有(44),它的一个比较知名的应用是(45),这种应用的协商层用公钥方式进行身份认证,记录层涉及到对应用程序提供的信息的分段、压缩、数据认证和加密。
计算机指令系统通常采用多种确定操作数的方式。当操作数直接给出时,这种寻址方式叫作(8),在这种方式下,操作数直接包含在指令中;当操作数的地址由某个指定的变址寄存器的内容与位移量相加得到时,叫作(9);如果操作数的地址是主存中与该指令地址无关的存储单元的内容
下面是一个面向连接的SOCKET实例,填入(n)处。【说明】代码实例中的服务器通过socket连接向客户端发送字符串"Hello,youareconnected!"。只要在服务器上运行该服务器软件,在客户端运行客户软件,客户端就会收到该
阅读以下说明,回答下面问题。【说明】在atm(asynchronoustransfermode)传输模式中,信息被组织成信元,因包含来自某用户信息的各个信元不需要周期性出现,这种传输模式是异步的。由于atm技术简化了交换过程,去处了不必要
两个人利用Netphone通话时,对语言格式的解释是由(19)完成的。
OSPF协议适用于4种网络。下面的选项中,属于广播多址网络(BroadcastMulti—Access)的是(1),属于非广播多址网络(NoneBroadcastMulti-Access)的是(2)。(2009年上半年试题)(2)
TheBorderGatewayProtocol(BGP)isaninterautonomoussystem(6)protocol.TheprimaryfunctionofaBGPspeakingsystemistoex
VirtualizationisanapproachtoITthatpoolsandshares(1)sothatutilizationisoptimizedandsuppliesautomaticallymeetd
随机试题
女性,63岁,已确诊为慢性胰腺炎。3d前再次出现上腹痛,血尿淀粉酶升高,经内科保守治疗好转。行胰腺超声检查提示胰腺巨大假性囊肿形成。应选择的治疗方案为
高填方路基沉降主要由施工方面造成的原因有()。
某注册建造师在2007年7月16日,因交通肇事罪被判处有期徒刑两年,于2009年3月26日服刑完毕。根据有关规定。该注册建造师重新注册至少应在()之后才能提出申请。
2006年7月1日,乙公司为兴建厂房从银行借入专门借款5000万元。借款期限为2年,年利率为5%,借款利息按季支付。乙公司于2006年10月1日正式开工兴建厂房。预计工期1年3个月,工程采用出包方式。乙公司于开工当日、2005年12月31日、2007年
《中国公民出国旅游团队名单表》的四联分别是()。
下列各组词中不属于同音词的是()。
在实际的计算机网络组建过程中,一般首先应该做什么()。
SMARTOFFICESUPPUESLTDTELEPHONEMESSAGECaller’sName:JenniferBryantCompany:(1)OrderNumber:78362Di
AttemptsatDeterminingEarth’sAgeP1:Sincethedawnofcivilization,peoplehavebeencuriousabouttheageofEarth.What’s
Overthepastdecade,Americancompanieshavetriedhardtofindwaystodiscourageseniormanagersfromfeatheringtheirownne
最新回复
(
0
)