Class diagrams: classes with their attributes and methods, joined by
relations named for what they are -- inheritance, composition,
aggregation, association -- with their cardinalities, nested in
namespaces.
Each head of a relation says which way it runs. An arrow or a lollipop
marks the end it runs to: a class edge drawn Animal <|-- Duck has its
head at Animal, so Duck is the one that inherits and the edge runs from
Duck to Animal. A diamond marks the whole, the end it runs from:
Car *-- Wheel and Wheel --* Car are both Car composed of Wheel. A
relation whose heads run opposite ways runs both ways, each in the words
of its own head, and one with no head runs as it was written. Each
cardinality is read with its class, in the order the edge runs:
cardinality many Circle to 1 Shape.
Class diagrams: classes with their attributes and methods, joined by relations named for what they are -- inheritance, composition, aggregation, association -- with their cardinalities, nested in namespaces.
Each head of a relation says which way it runs. An arrow or a lollipop marks the end it runs to: a class edge drawn
Animal <|-- Duckhas its head atAnimal, so Duck is the one that inherits and the edge runs from Duck to Animal. A diamond marks the whole, the end it runs from:Car *-- WheelandWheel --* Carare both Car composed of Wheel. A relation whose heads run opposite ways runs both ways, each in the words of its own head, and one with no head runs as it was written. Each cardinality is read with its class, in the order the edge runs:cardinality many Circle to 1 Shape.