首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
45
问题
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
软件设计师上午基础知识考试
软考中级
相关试题推荐
在UNIX操作系统中,若用户键入的命令参数的个数为1时,执行cat$1命令;若用户键入的命令参数的个数为2时,执行cat>>$2<$1命令。请将下面所示的Shell程序的空缺部分补齐。case(25)in1)cat$1;;
PPP协议是数据链路层的一个协议,它被广泛用于接入Internet中。PPP协议是一个(53)。帧长为整数个字节。它克服了SLIP协议的缺点,可以进行协商,并且(54)。它可以分成3个层次,其中的网络层协议被称为(55),包括了不同的网络层协议。利用PPP
公开密钥加密是一种(43)。常用的公钥加密算法有(44),它的一个比较知名的应用是(45),这种应用的协商层用公钥方式进行身份认证,记录层涉及到对应用程序提供的信息的分段、压缩、数据认证和加密。
三个部件的可靠度R分别是0.8,如果三个部件串联则它们构成的系统的可靠度是(29)。
阅读以下说明,回答下面问题。【说明】某企业规模扩大,为了满足网络扩容和企业工作实际需求,同时还要保证投资不要过大。经过深入分析和研究对比,决定采用无线局域网组网来解决网络扩容的问题,网络拓扑如图1.8所示。
阅读以下说明,回答下面问题。【说明】某公司下设三个部门,为了便于管理,每个部门组成一个VLAN,公司网络结构如图2.3所示。
根据我国相关法律的规定,实用新型专利和外观设计专利的保护期为(20)年,单位软件产品的著作权保护期为(21)年。
两个人利用Netphone通话时,对语言格式的解释是由(19)完成的。
OSPF协议适用于4种网络。下面的选项中,属于广播多址网络(BroadcastMulti—Access)的是(1),属于非广播多址网络(NoneBroadcastMulti-Access)的是(2)。(2009年上半年试题)(1)
某LinuxDHCP服务器dhcpd.conf的配置文件如下:ddns—update—stylenone;subnet192.168.0.0netmask255.255.255.0{range192.168.0.200
随机试题
甲以自有房屋向乙银行抵押借款,办理了抵押登记。丙因甲欠钱不还,强行进入该房屋居住。借款到期后,甲无力偿还债务。该房屋由于丙的非法居住,难以拍卖,甲怠于行使对丙的返还请求权。乙银行可以行使下列哪些权利?
阿托品的解痉作用最适于治疗()。
偿债能力分析和财务生存能力分析原则上采用()体系。
某企业生产乙产品,本期计划销售量为10000件,应负担的固定成本总额为500000元,单位产品变动成本为100元,适用的消费税税率为5%。根据上述资料,运用保本点定价法测算的单位乙产品的价格应为()元。
治理“内部人控制”问题的基本对策包括()。
战国后期,我国出现的具有世界影响的专门沦述教育的著作是《大学》。()
一、注意事项1.申论考试,与传统作文考试不同,是对分析驾驭材料的能力与表达能力并重的考试。2.作答参考时限:阅读材料40分钟,作答110分钟。3.仔细阅读给定的资料,按照后面提出的“申论要求”依次作答,答案书写在指定位置。二、给定
AndrenaGravidaisthenameofawildbeedecliningintheUnitedKingdomandtheNetherlands.A(31)ofmonthsagotherecentd
Faresonthecity-runpublicbusesinGreenvillearesubsidizedbycitytaxrevenues,butamongthebeneficiariesofthelowfar
CharacteristicsqfAmericanCultureI.PunctualityA.Goingtothetheater:be【T1】______twentyminutesprior【T1】______B.
最新回复
(
0
)