We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fbb715 commit 1f228dbCopy full SHA for 1f228db
foo.mermaid
@@ -0,0 +1,26 @@
1
+---
2
+title: Animal example
3
4
+classDiagram
5
+ note "From Duck till Zebra"
6
+ Animal <|-- Duck
7
+ note for Duck "can fly\ncan swim\ncan dive\ncan help in debugging"
8
+ Animal <|-- Fish
9
+ Animal <|-- Zebra
10
+ Animal : +int age
11
+ Animal : +String gender
12
+ Animal: +isMammal()
13
+ Animal: +mate()
14
+ class Duck{
15
+ +String beakColor
16
+ +swim()
17
+ +quack()
18
+ }
19
+ class Fish{
20
+ -int sizeInFeet
21
+ -canEat()
22
23
+ class Zebra{
24
+ +bool is_wild
25
+ +run()
26
0 commit comments