CMPUT 301

Software Engineering

Class Participation Exercise 9

Translations: en

Class 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() { ... }
    ...
}

  1. What notation goes here for this relationship?
a) Not selected
b) ←
c) —
d) ◇
e) ◆
f) ◁
  1. What notation goes here for the multiplicity
a) 0
b) 1
c) 0..1
d) 0.._
e) 1.._
  1. What notation goes here for the instance variable?
a) private
b) public
c) -
d) +
e) attributes
  1. What notation goes here for this method?
a) private
b) public
c) -
d) +
e) behaviors