首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
83
问题
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
软件设计师上午基础知识考试
软考中级
相关试题推荐
帧中继网络没有采用流量控制机制,只有拥塞控制功能。采用显式信令控制时,如果LAP-D帧中的FECN位置1,则表示(33)。
为了进行差错控制,必须对传送的数据帧进行校验。在局域网中广泛使用的校验方法是(7)校验。CRC-16标准规定的生成多项式为G(x)=X16+X15+X2+1,它产生的校验码是(8)位,接收端发现错误后采取的措施是(9)。如果CRC的生成多项式为G(X)=X
下列概念中不属于成本管理环节的是(10)。
Java语言所编写的程序可以分为两类,Java Applet是对(53)负责的。
ISDN相对传统电信网有哪些优点?在路由器和ISDN之间需要加入终端适配器(TA)吗?试说明在什么情况下需要加入TA。
在应用服务器关机的情况下,公司员工能连接上Internet吗?简要解释。假设采用ISDN基本速率接口,下载1875K的文件,最快需要多少秒?
在由L2TP构建的VPN中,主要由(1)和(2)两种类型的服务器构成。1.将图中(1)和(2)空缺名称填写在答题纸的相应位置。2.简要说明两种服务器的主要作用。某路由器的部分配置信息如下所示,请解释其中标有下划线部分的含义。……
简述NetBIOS与TCP/IP关系。Windows组网中采用什么工具来实现域的创建和管理?在什么情况下需要设置“主域”?
用户李四给数据库服务器发命令,要求将文件“张三.dbf”删除。数据库服务器上的认证机制需要确定的主要问题是(24)。
通过SNMP可以获得网络中各种设备的状态信息,还能对网络设备进行控制。在WindowsServer2003中可以采用IPSec来保护SNMP通信,如果密钥交换设置采用“主密钥完全向前保密(PFS)(P)”,则“身份验证和生成密钥间隔”默认值为480分钟
随机试题
女,55岁,5年前在右下前颈部触及花生米大小的肿块,无痛,近来讲话声音嘶哑,无心悸等症状。查体右甲状腺触及约2.5cm大小结节,随吞咽活动,左甲状腺未触及结节,右侧中颈部可触及肿大淋巴结,约2cm×2cm×1.5cm大小。B超示右甲状腺单发结节,内有强光点
新生儿期是
背景资料:某装机容量50万kW的水电站工程建于山区河流上,拦河大坝为2级建筑物,采用碾压式混凝土重力坝,坝高60m,坝体浇筑施工期为两年,施工导流采取全段围堰、隧洞导流的方式。施工导流相关作业内容包括:①围堰填筑;②
下列可用于支付工资及奖金的账户是()。
根据合伙企业法律制度的规定,合伙企业在清算时,企业财产在支付清算费用后,应当优先清偿()。
初中学生思维的特点属于()。
下列不属于公安事故调查的基本原则的是()。
设A,B,A+B,A-1+B-1皆为可逆矩阵,则(A-1+B-1)-1等于().
•YouwillhearpartofaninterviewbetweenheadofLeoBurnettEntertainmentandaninterviewer.•Foreachquestion23—30,mark
中国传统戏曲主要起源于原始部落的歌舞表演,是一种历史悠久的综合舞台艺术。经过几千年的发展。这类戏曲艺术才逐渐变得完整。中国戏曲有360多个种类,其中,京剧(PekingOpera)、豫剧(HenanOpera)和越剧(ShaoxingOpera)最为
最新回复
(
0
)