7
Back to Training Grounds
4.3

Relationships Between Classes

is-a, has-a, composition, aggregation, dependency, delegation — and why composition usually beats inheritance.

Introduction

Relationships Between Classes

Every class diagram draws arrows between boxes. This section explains what each arrow means, when to use it, and the critical "composition vs inheritance" decision.


1 / 12
1 / 12 — Introduction