首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
28
问题
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
软件设计师上午基础知识考试
软考中级
相关试题推荐
在CSMA中,决定退让时间的算法为:①如果信道空闲,以户的概率发送,而以(1-p)的概率延迟一个时间单位t;②如果信道忙,继续监听直至信道空闲并重复步骤①;③如果发送延迟了一个时间单位t,则重复步骤①。上述算法为(14)。
一般认为决定局域网特性的主要技术有三个,它们是(20)。
计算机指令系统通常采用多种确定操作数的方式。当操作数直接给出时,这种寻址方式叫作(8),在这种方式下,操作数直接包含在指令中;当操作数的地址由某个指定的变址寄存器的内容与位移量相加得到时,叫作(9);如果操作数的地址是主存中与该指令地址无关的存储单元的内容
容量为64块的Cache采用组相连方式映像,字块大小为128个字,每4块为一组。若主存容量为4096块,且以字编址,那么主存地址应该为(43)位,主存区号为(44)位。
通过VTP域内的所有交换机都清楚所有的VLAN情况,然而VTP会产生不必要的网络流量,______技术可以消除该多余流量。
虚拟存储,就是把多个存储介质模块(如硬盘、RAID)通过一定的手段集中管理起来,所有的存储模块在一个存储池(StoragePool)中得到统一管理。虚拟存储管理系统是以程序的(5)理论为基础的,其基本含义是指程序执行时往往会不均匀地访问主存储器单元。根据
某仓库有两名发货员,一名审核员。当顾客提货时,只要发货员空闲,就允许顾客进入仓库提货,顾客离开时,审核员检验顾客提货是否正确。其工作流程如图3.16所示。为了利用P/V操作正确地协调它们之间的工作,设置了两个信号量S1和S2,且S1的初值为2,S2的初值为
TheBorderGatewayProtocol(BGP)isaninterautonomoussystem(6)protocol.TheprimaryfunctionofaBGPspeakingsystemistoex
通过该程序的算法用等价类设计测试用例,检查逻辑覆盖标准。用边界值分析法设计测试用例,检查逻辑覆盖标准。
在设计测试用例时,(41)是用得最多的一种黑盒测试方法。在黑盒测试方法中,等价类划分方法设计测试用例的步骤是:①根据输入条件把数目极多的输入数据划分成若十个有效等价类和若干个无效等价类。②设计一个测试用例,使其覆盖(42)尚未被覆盖的有效等
随机试题
逆转录病毒载体的主要缺点是
男性,50岁,肝硬化史10年。关于肝硬化食管静脉曲张破裂大出血后发生的变化,错误的是
8岁男孩,左髋部痛,跛行,伴低热、盗汗、食欲不振3周。查体:体温37.6℃,左髋部活动受限,Thomas征阳性。髋关节X线片见关节间隙略窄,边缘性骨破坏。其诊断首先应考虑为
痰留经络筋骨引发的病证不包括
编制预算定额应依据()。【2007年真题】
()是指单位类客户在存人款项时不约定存期,支取时需提前通知银行,并约定支取存款日期和金额方能支取的存款类型。
古琴在最初时只有五根弦,它们分别代表了金、木、水、火、土,到周朝时又增加了两根,又称七弦琴,这两根弦代表的是( )。
在《软件支持环境GB/T15853—19959中,()不属于软件开发支持环境的来源构成。
系统初步调查的对象有很多。其中,首先应该调查的对象是
结构化程序设计主要强调的是
最新回复
(
0
)