Diagram source
The preview updates as you type and autosaves on this device.
992/20,000 characters
Syntax for class diagrams
Lines starting with ' are comments. @startuml and @enduml are optional. This is a subset of PlantUML, so the text also works in PlantUML tools.
class Order
- Declare a class. Also: abstract class, interface, enum.
class Order { -id: UUID +total(): Money }- Members, one per line. Visibility: + public, - private, # protected, ~ package. A ( makes it a method.
Customer <|-- VipCustomer
- Inheritance (generalization). Also --|>.
Payable <|.. Payment
- Realization of an interface. Also ..|>.
Order "1" *-- "1..*" OrderLine
- Composition, filled diamond at the whole (Order). Also --*.
Team "0..1" o-- "*" Player
- Aggregation, hollow diamond at the whole. Also --o.
Order --> Payment : paid by
- Directed association with a label. Also <--. Plain -- for undirected.
Order ..> Clock
- Dependency. Also <...