12.24. OOP Architecture

12.24.1. Boxes and Arrows

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

12.24.2. UML

  • Unified Modeling Language

12.24.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

12.24.4. UML Sequence Diagram

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

12.24.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()
      }
```