首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
79
问题
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
软件设计师上午基础知识考试
软考中级
相关试题推荐
ISDN是在(58)基础上建立起来的网络,能够提供的最高速率(59)。常用的有D和B两种标准化信道,其中D信道主要用来传输(60)。使用基本速率接口传输声音,一路话音占用的数据传输率是(61),占总带宽的比例是(62)。
在因特网的路由选择协议中,属于外部网络协议的是(27),按固定时间间隔和相邻路由器交换路由表信息的协议是(28)。该协议最大特点是(29),它使用(30)传输信息。此协议报文最大长度、最多可包括的路由数和最大距离分别是(31)。
下面有关NTPS文件系统优点的描述中,(18)是不正确的。要把FAT32分区转换为NTFS分区,并且保留原分区中的所有文件,不可行的方法是(19)。
ISDN相对传统电信网有哪些优点?在路由器和ISDN之间需要加入终端适配器(TA)吗?试说明在什么情况下需要加入TA。
Networks can be interconnected by different devices in the physical layer networks can be connected by(1)or hubs. Which just mov
下列关于传输服务的面向连接服务和无连接服务说法中正确的是(27)。
通过SNMP可以获得网络中各种设备的状态信息,还能对网络设备进行控制。在WindowsServer2003中可以采用IPSec来保护SNMP通信,如果密钥交换设置采用“主密钥完全向前保密(PFS)(P)”,则“身份验证和生成密钥间隔”默认值为480分钟
路由器命令“Router(config)#access—listldeny192.168.1.1”的含义是__________。(2012年上半年试题)
The approach we propose is a system-oriented methodology for knowledge acquisition. This orientation emphasizes ongoing document
VirtualizationisanapproachtoITthatpoolsandshares(1)sothatutilizationisoptimizedandsuppliesautomaticallymeetd
随机试题
恶性骨肿瘤的诊断依据是:()
患者,女,34岁。主诉白带增多。检查:宫颈外口细颗粒状红色区占宫颈面积的2/3,宫颈刮片未见癌细胞。护士应指导
部分急性上呼吸道感染患儿发病早期出现腹痛多为脐周阵痛,无压痛,与发热所致的()有关
A.探诊深度B.牙周附着水平C.牙松动度D.探诊出血E.牙龈退缩能判断牙龈有无炎症的重要指标是
特种设备安装、改造、维修的施工单位在施工前应进行书面告知,书面告知应提交的材料有()等。
下列关于个人汽车贷款贷前调查的说法,错误的是()。[2014年6月真题]
()亦称概略定员标准——是以某类人员乃至企业全部人员为对象制订的标准。
根据下列材料回答下列问题。2004年.在我国的电子计算机制造业中,外资企业的产值约是其他企业的多少倍?()
神经系统最基本的活动方式是()。
最初没有镜子的时候,人们只好到湖边看看自己的模样,或用盆盛水来照脸。后来人们把青铜制成板状,把板的一面打光,发明了青铜镜。世界上第一面玻璃镜子是400多年前在威尼斯出现的。这种镜子比青铜镜具有更好的清晰度。当时,一面镜子价值几十万块钱。欧洲许多的
最新回复
(
0
)