首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
81
问题
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、distinction
B、level
C、grade
D、hierarchy
答案
D
解析
转载请注明原文地址:https://kaotiyun.com/show/4rxZ777K
本试题收录于:
软件设计师上午基础知识考试题库软考中级分类
0
软件设计师上午基础知识考试
软考中级
相关试题推荐
一个Lan拓扑可以使用令牌传递或CSMA/CD控制媒体访问,其拓扑属于下列的(69),若仅使用像令牌传递这样的确定性媒体控制方法,其拓扑属于下列的(70)。
ISDN是在(58)基础上建立起来的网络,能够提供的最高速率(59)。常用的有D和B两种标准化信道,其中D信道主要用来传输(60)。使用基本速率接口传输声音,一路话音占用的数据传输率是(61),占总带宽的比例是(62)。
PPP协议是数据链路层的一个协议,它被广泛用于接入Internet中。PPP协议是一个(53)。帧长为整数个字节。它克服了SLIP协议的缺点,可以进行协商,并且(54)。它可以分成3个层次,其中的网络层协议被称为(55),包括了不同的网络层协议。利用PPP
Microsoft’sCOMisasoftwarearchitecturethatallowsapplicationstobebuiltfrombinarysoftwarecomponents.COMistheunde
Networkmanagershavelongawaitedpracticalvoice-over-IP(VOIP)solutions.VOIPpromiseseasenetworkmanagementanddecreases(6
在CSMA中,决定退让时间的算法如下(1)如果信道空闲,则以P的概率发送,而以1-P的概率延迟一个时间单位to(2)如果信道忙,则继续监听直至信道空闲并重复步骤(1)。(3)如果发送延迟了一个时间单位t,则重复步骤(1)。上
阅读以下有关传统局域网络运行和维护的叙述,填入(n)处。常见的三种拓扑结构是星型、(1)与(2)拓扑结构,而常见的信道访问方式有(3)及(4)。网络配置和运行包括一系列保证局域网络运转的工作,主要有:选择网络操作系统和网络连接协议等;配置网络服务
Networks can be interconnected by different devices in the physical layer networks can be connected by(1)or hubs. Which just mov
TheSimpleNetworkManagementProtocol(SNMP)isan(71)protocolthatfacilitatestheexchangeofmanagementinformationbetween(7
随机试题
气管插管的充气气囊压力应小于______mmHg,一般每______小时放气一次。
用于鉴定金黄色葡萄球菌和其他葡萄球菌的主要试验是______;区分表皮葡萄球菌和腐生葡萄球菌的常用试验是______。
顺式作用元件是指
以珠蛋白合成障碍为主要表现的疾病是
国家药物政策的内容包括()
下列不属于社会工作者直接服务角色的是()。
郧西是一个集老、少、边、山于一体的贫困县,该县95%左右属于山区,最远的村民小组距乡(镇)政府驻地有70多公里,一些偏远山村的群众到乡镇办事,来回要走十几公里。往往因为不熟人、不熟路、不熟办事程序,找到部门又无人办事、办不了事,常常为办一个证、盖一个章、签
马克思指出:“历史不过是追求着自己目的的人的活动而已。”这一观点表明()
设每次射击命中概率为0.3,连续进行4次射击,如果4次均未击中,则目标不会被摧毁;如果击中1次、2次,则目标被摧毁的概率分别为0.4与0.6;如果击中2次以上,则目标一定被摧毁。那么目标被摧毁的概率p=________。
调制解调器的主要作用是( )。
最新回复
(
0
)