Class Participation Exercise 9
Translations: enClass Participation Exercise: Code to UML (UFO)
// UFO.java
public class UFO {
private Collection<Earthling> abductees;
...
}
// Earthling.java
public class Earthling {
private int stomachs;
public boolean mindProbeable() { ... }
...
}
- What notation goes here for this relationship?
a) Not selected
b) ←
c) —
d) ◇
e) ◆
f) ◁
- What notation goes here for the multiplicity
a) 0
b) 1
c) 0..1
d) 0.._
e) 1.._
- What notation goes here for the instance variable?
a) private
b) public
c) -
d) +
e) attributes
- What notation goes here for this method?
a) private
b) public
c) -
d) +
e) behaviors