1. | UML class diagrams can describe which of the following?
|
(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:方法