OOP foundations

UML Relationships

The arrows ARE the design. Dependency, association, aggregation, composition and inheritance say exactly how tightly two classes are bound, and who owns whose lifecycle. An animated lesson where the diagram draws itself as the design grows.

  • Lesson 7 of 8
  • Animated diagrams

Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

8 lessons, each with diagrams that draw themselves.

What you will learn

  • The lines carry the meaning
  • ⇢ Dependency: "uses transiently"
  • → Association: "holds a reference"
  • ◇ Aggregation vs ◆ Composition, the one everyone confuses
  • ▷ Inheritance, a different axis
  • The rule of thumb

More low-level design

Watch UML Relationships take shape

Sign in and the lesson opens with its diagram ready to play, and the rest of OOP foundations beside it.

DSA comes with the all labs plan and every ChaiCode batch.