首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
64
问题
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
软件设计师上午基础知识考试
软考中级
相关试题推荐
TCP通过建立连接为用户提供可靠传输,与数据链路层的连接建立不同,TCP要经过(58)才能确定一个连接,这是因为(59)。TCP采用的差错控制也是超时重发技术,超时时间的设置采用—(60)策略,以便适应互联网的特性。超时时间设置根据的是(61)。TCP的拥
基于TCP/IP的互联网服务中,IP协议提供主机之间的(42)分组传输服务。TCP协议提供端口之间的(43)文传输服务;U-DP属于(44)协议,从其下一层接收了数据以后,根据(45)将之分解咸UDP数据报;应用层的(46)协议可以使用UDP或TCP协议传
在面向数据流的设计方法中,把数据流图中的数据流划分为(8)两种。
程序的(39)理论是虚拟存储管理系统的基础。根据这个理论,Denning又提出了工作集理论。工作集是进程运行时被频繁地访问的页面集合。在进程运行时,如果它的工作集页面都在(40)内,能够使该进程有效地运行,否则会出现频繁的页面调入/调出现象。
Frame Relay is simplified form of(51), similar in principle to(52), in which synchronous, frames of data are routed to different
数字签名(Digital Signature):即是只有信息发送者使用公开密钥算法的主要技术产生的别人无法伪造的一段数字串。其中(31)是数字签名不能保证的。
某项目主要由A~I任务构成,其计划图(如下图所示)展示了各任务之间的前后关系以及每个任务的工期(单位:天),该项目的关键路径是()。在不延误项目总工期的情况下,任务A最多可以推迟开始的时间是()天。
TheBorderGatewayProtocol(BGP)isaninterautonomoussystem(6)protocol.TheprimaryfunctionofaBGPspeakingsystemistoex
Networksecurityconsistsofpoliciesandpracticestopreventandmonitor(71)access,misuse,modification,ordenialofacomput
VirtualizationisanapproachtoITthatpoolsandshares(1)sothatutilizationisoptimizedandsuppliesautomaticallymeetd
随机试题
2006年3月,20岁的刘灿在河东宾馆招聘中,经考核被录用为服务员,宾馆与刘灿签订了为期5年的劳动合同。合同条款之一是:“因宾馆服务业的特殊要求,凡被录用为本宾馆服务员的,不经公司批准在合同期内不得结婚,否则,宾馆有权提前解除合同。”刘灿在合同签字时,对该
“市场表现到什么时候,我们就应当追回投资或一定退出?资产负债率高到什么时候,我们就需要停止投资?”这指的是()。
A.头部一侧、面颊及耳前后部位的腧穴B.身体侧丽腧穴和上、下肢部分腧穴C.脊背、腰骶部、腹部的腧穴D.前头、颜面和颈前等部位和腧穴E.后头和项、背部的腧穴
患者抑郁、厌世,以至自杀的状况属于角色行为
甲省乙市丁原料药生产企业于2011年12月12日取得药品生产许可证,主要从事生药的加工制造和中药的提取。生药一般为来自植物和动物的生物药材,通常为植物或动物机体、器官或其分泌物。该企业主要通过干燥加工处理,分别经过蒸、炒、炙、煅等炮制操作制成中药饮片。
人体生理功能的调节方式有()。
关于资产管理行业的现状,下列选项中表述错误的是()。
企业组织结构中直线关系的本质是()。
区食药局根据《食品安全法》第一百二十三条,以“用回收食品作为原料生产食品”为由对甲公司作出罚款300万元、责令停产停业一年的决定。甲公司不服,向市食药局申请行政复议。市食药局根据《食品安全法》第一百二十四条,以“用超过保质期的食品原料生产食品”为由对甲公司
2008年2月25日~27日举行的十七届二中全会强调,深化行政管理体制改革是发展社会主义市场经济和发展社会主义民主政治的必然要求,是()体制改革的重要内容。会议提出,要贯彻精简统一效能的原则和决策权、招行权、监督权既相互制约又相互协调的要求
最新回复
(
0
)