ssd3 Multiple-Choice Quiz 2

这篇博客主要讨论了UML类图的用途,它能够展示类的内部结构如属性和方法,以及类与类之间的关系。文章通过一系列选择题的形式,详细解释了类的组成部分、类之间的聚合、关联等不同关系,并区分了聚合与关联的特殊形式。
摘要由CSDN通过智能技术生成
 1.

UML class diagrams can describe which of the following?

  1. The internal structure of classes
  2. Relationships between classes


(a) I and II
(b) None
(c) II only
(d) I only

Answer: a

I.  UML类图能表达出类的内部结构,如:类名,属性,方法。

II. UML类图能表达类与类之间的关系。

 



2.

In a UML class diagram's representation of a class, the top, middle, and lower rectangular compartments respectively describe the _____ of the class.



(a) attributes, methods, and name
(b) attributes, methods, and constants
(c) name, attributes, and methods
(d) name, methods, and constants

Answer:c

top:类名

middle:属性

lower:方法

 



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值