뭐든 즐기면서 ;)

Class Diagrame 무료 사이트 Mermaid 본문

IDE

Class Diagrame 무료 사이트 Mermaid

Tada.*+ 2022. 12. 15. 16:52
728x90

https://mermaid.live/

샘플 코드&UI

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()
    }

    Sample <|-- Animal
    class Sample {
        <<interface>>
        +int age
    }

화살표 종류

classA <|-- classB
classC *-- classD
classE o-- classF
classG <-- classH
classI -- classJ
classK <.. classL
classM <|.. classN
classO .. classP

classA --|> classB : Inheritance
classC --* classD : Composition
classE --o classF : Aggregation
classG --> classH : Association
classI -- classJ : Link(Solid)
classK ..> classL : Dependency
classM ..|> classN : Realization
classO .. classP : Link(Dashed)

Annotation class

  • <<Interface>> To represent an Interface class
  • <<Abstract>> To represent an abstract class
  • <<Service>> To represent a service class
  • <<Enumeration>> To represent an enum
728x90

'IDE' 카테고리의 다른 글

Postman을 이용하여 WebSocket 테스트하기  (0) 2023.07.19
Gradle ( build.gradle)  (0) 2022.11.15
Comments