首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
39
问题
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://jikaoti.com/ti/UVa7FFFM
本试题收录于:
软件设计师上午基础知识考试题库软考中级分类
0
软件设计师上午基础知识考试
软考中级
相关试题推荐
A向B发送消息P,并使用公钥体制进行数字签名。设E表示公钥,D表示私钥,则B要保留的证据是(5)。基于数论原理的RSA算法的安全性建立在(6)的基础上。Kerberos是MIT为校园网设计的身份认证系统,该系统利用智能卡产生(7)密钥,可以防止窃听者捕获认
在UNIX操作系统中,若用户键入的命令参数的个数为1时,执行cat$1命令;若用户键入的命令参数的个数为2时,执行cat>>$2<$1命令。请将下面所示的Shell程序的空缺部分补齐。case(25)in1)cat$1;;
《计算机软件产品开发编制指南》(GB8567-1988)是(22)标准。
公开密钥加密是一种(43)。常用的公钥加密算法有(44),它的一个比较知名的应用是(45),这种应用的协商层用公钥方式进行身份认证,记录层涉及到对应用程序提供的信息的分段、压缩、数据认证和加密。
容量为64块的Cache采用组相连方式映像,字块大小为128个字,每4块为一组。若主存容量为4096块,且以字编址,那么主存地址应该为(43)位,主存区号为(44)位。
将图中(1)和(2)空缺名称填写在答题纸对应的解答栏内。使ADSL的传输速率更高有哪两个主要因素?
知识产权一般都具有法定的保护期限,一旦保护期限届满,权利将自行终止,成为社会公众可以自由使用的知识。(23)权受法律保护的期限是不确定的,一旦为公众所熟知,即成为公众可以自由使用的知识。
某项目主要由A~I任务构成,其计划图(如下图所示)展示了各任务之间的前后关系以及每个任务的工期(单位:天),该项目的关键路径是()。在不延误项目总工期的情况下,任务A最多可以推迟开始的时间是()天。
Althoughagivenwaveformmaycontainfrequenciesoveraverybroadrange.asapracticalmatteranytransmissionsystemwillbe
The approach we propose is a system-oriented methodology for knowledge acquisition. This orientation emphasizes ongoing document
随机试题
医生在治疗中确诊一名肝癌患者,他妥当的做法应是
男,59岁,反复发热半个月。查体:T38.5℃双侧颈部和腹股沟淋巴结肿大,最大者2cm×2cm,无压痛,肝脾不大。CT示右侧胸腔中等量积液,穿刺后胸水细胞学检查见大量淋巴细胞。根据目前资料,该患者的临床分期是
投资组合保险策略的支付曲线是凹线。()
下列各项预算中,构成全面预算体系最后环节的是( )。
价值规律的表现形式是价格围绕价值波动。下列价格变动符合价值规律的有()。
1957年2月,毛泽东发表了《关于正确处理人民内部矛盾的问题》的讲话,关于此次讲话的内容,下列说法正确的是()
设f(x)在[a,b]上满足|f’’(x)|≤2,且f(x)在(a,b)内取到最小值.证明:|f’(a)|+|f’(b)|≤2(b-a).
ManyAmericanshaveagrosslydistortedandexaggeratedviewofmostoftheriskssurroundingfood.FergusClydesdale,headoft
Whichofthefollowingstatementistrue?
Thereisnomorefashionablesolutiontothecurrentglobalrecessionthan"greenjobs."Manycountriesarealleagerlypromotin
最新回复
(
0
)