Each outcome is backed by the checks that test it. Solid means every check was right first time; with hints means you got there with a nudge; worth a revisit means an answer was revealed or is still wrong.
1
Read a class box aloud: its name, its fields and methods, the + and - in front of them, and the types written the Java way.
Not yet
2
Tell the six kinds of line apart by their style and their ends, and say each as a short sentence: is a, can do, owns, holds, knows about, needs for a moment.
Not yet
3
Choose between composition and aggregation by asking who makes the part and whether it lives on without the whole, and read how many from a label such as 0..*.
Not yet
4
Write the classes a small diagram shows, in Python or Java, and draw the diagram of a small program from its code.
Not yet
Your cheat sheet
What each lesson leaves you able to do, in one place. Lessons you have not finished are dimmed, not hidden.
Choose between the two diamonds with two questions: who makes the part, and does it live on without the whole?
Draw composition as a filled diamond at the owner, and aggregation as a hollow diamond at the holder.
Draw association, knows about, as a solid line with an open arrowhead, and a dependency, needs for a moment, as a dashed arrow.
Read a multiplicity label: 1 is exactly one, 0..1 is none or one, 0..* is zero or more, 1..* is one or more, counted at the class the label sits next to.
Write each part of a diagram as code: a box as a class, a triangle in the class line, a filled diamond as a constructor call inside the owner's method.
Recognise a hollow diamond in code: the part comes in as a method input and is added to a list.
Watch in a trace where each object is made, and use it to tell composition from aggregation.
Draw a diagram from code in four passes: boxes, triangles, fields that hold other objects, then inputs that are not kept.
Name a line from its style and its end, choose a diamond for a new pair, count the diagram of a short program, predict a family of classes, and write a class line from its arrow.