首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
24
问题
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
软件设计师上午基础知识考试
软考中级
相关试题推荐
项目管理工具中,将网络方法用于工作计划安排的评审和检查的是(13)。
Networkscanbeinterconnectedbydifferentdevices.Inthephysicallayer,networkscanbeconnectedby(66)orHubs,whichjust
假设一个有3个盘片的硬盘,共有4个记录面,转速为7200r/min,盘面有效记录区域的外直径为30cm,内直径为10cm,记录位密度为250bit/mm,磁道密度为8道/mm,每磁道分为16个扇区,每扇区512字节,则该硬盘的非格式化容量和格式化容量约为(
项目管理工具中,将网络方法用于工作计划安排的评审和检查的是(7)。
简述什么是ISDN?依据ISO/OSI参考模型对无线扩频网络设备进行分类,可以分为哪几种类型?用无线扩频设备实现网络互连需要何种配套设备?
下面是一个简单的使用RAWSOCKET实现的ping程序,填入(n)处。/*simplepingprogram*/structsockaddr_insaddr;intrawsock;unsignedshorti
有关帧中继和X.25的说法不正确的是(25)。
TheSimpleNetworkManagementProtocol(SNMP)isan(71)protocolthatfacilitatestheexchangeofmanagementinformationbetween(7
通过该程序的算法用等价类设计测试用例,检查逻辑覆盖标准。用边界值分析法设计测试用例,检查逻辑覆盖标准。
随机试题
《季氏将伐颛臾》中“且在邦域之中矣”的“邦域”是指()
患儿,9岁。发热,双侧腮腺肿大9天。现头痛,呕吐。杏体:体温39℃,嗜睡,颈项强直。实验室检查:脑脊液蛋白定量20mg/dl,细胞数160×106/L,以淋巴细胞为主。应首先考虑的是
体内血浆中最主要的抗凝物质是
反映股票基金投资风险的指标主要有( )。
政府购买公共服务是20世纪80年代以来新兴的公共服务供给模式。近年来,在加强和创新社会治理的过程中,我国政府进一步转变职能,改进公共服务提供方式。许多地方对政府购买养老、就业、计划生育等领域的公共服务进行了探索,变“政府配餐”为“群众点菜”,取得良好效果。
与我国接壤的金砖国家有:
简述法律事实的概念和特征。
某企业信息系统采用分布式数据库系统,该系统中“每节点对本地数据都能独立管理”和“当某一场地故障时,系统可以使用其它场地上的副本而不至于使整个系统瘫痪”分别称为分布式数据库的()。
在一个具有n个顶点的无向图中,要连通全部顶点至少需要(19)条边。
A.televisionB.newspaperC.MedicineD.homeworkE.umbrellaF.questionG.film
最新回复
(
0
)