Q2 Which of these might be a good name for a class?
Customer
Customers
customer
customers
Q3 An attribute with name "name" and type String is shown as:
name, type=String
String name
name : String
name (String)
Q4 Suppose we have an association between a class Wheel and a class
Bicycle with the obvious interpretation. The multiplicity at the Wheel end
of the association should be:
0
1
2
0..*
Answers:
Q1: A rectangle (In Booch's OOD, one of the precursors of UML, classes were represented by clouds, by the way.)
Q2: Customer
Q3: name : String (You will see other variants, especially the String name one, because this is consistent with declarations in Java. The sky will not fall if you use this form, but it's name : String that is strictly correct in UML)
Q4: 2
If in doubt, review.