--- id: aliases: [] tags: - authorship/original - destiny/uncertain - status/incomplete - topic/meta - type/encyclopedia-entry title: Diagrams --- # Diagrams ## Mermaid ### Flowchart ```mermaid graph LR A[README] %% B class A internal-link; ``` ## Class Diagram ```mermaid --- title: Animal example --- classDiagram note "From Duck till Zebra" Animal <|-- Duck note for Duck "can fly\ncan swim\ncan dive\ncan help in debugging" Animal <|-- Fish Animal <|-- Zebra Animal : +int age Animal : +String gender Animal: +isMammal() Animal: +mate() class Duck{ +String beakColor +swim() +quack() } class Fish{ -int sizeInFeet -canEat() } class Zebra{ +bool is_wild +run() } ``` | Type | Description | | ------- | ------------- | | `<\|--` | Inheritance | | `*--` | Composition | | `o--` | Aggregation | | `-->` | Association | | `--` | Link (Solid) | | `..>` | Dependency | | `..\|>` | Realization | | `..` | Link (Dashed) |