Class: All 6 Relationship Types

Inheritance, composition, aggregation, association, dependency, and realization, chained into one diagram — the reference chart for telling all six markers apart at a glance instead of checking each relationship's own page.

class-all-6-relationship-types.mmd
classDiagram
  A <|-- B : inheritance
  C *-- D : composition
  E o-- F : aggregation
  G --> H : association
  I ..> J : dependency
  K ..|> L : realization
Output
Class diagram, Zombie Mermaid A B C D E F G H I J K L inheritance composition aggregation association dependency realization

More Class diagram examples