13.9. OOP Architecture

13.9.1. Boxes and Arrows

../../_images/uml-class-diagram-1.jpg

13.9.2. UML

  • Unified Modeling Language

13.9.3. UML Class Diagram

../../_images/uml-class-diagram-2.png
../../_images/uml-class-diagram-3.png
../../_images/uml-class-diagram-4.png
../../_images/uml-class-diagram-5.png
../../_images/uml-class-diagram-6.png
../../_images/uml-class-diagram-7.png
../../_images/uml-class-diagram-8.jpg
../../_images/uml-class-diagram-9.jpg
../../_images/uml-class-diagram-10.png

13.9.4. UML Sequence Diagram

../../_images/uml-sequence-diagram.jpg

13.9.5. Mermaid

  • mermaid - Markdown extension

```mermaid
classDiagram
      Animal <|-- Duck
      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()
      }
```