Blame
|
1 | # Filesystem Layer |
||||||
| 2 | ||||||||
| 3 | ```mermaid |
|||||||
|
4 | --- |
||||||
| 5 | title: Animal example |
|||||||
| 6 | --- |
|||||||
| 7 | classDiagram |
|||||||
| 8 | note "From Duck till Zebra" |
|||||||
| 9 | Animal <|-- Duck |
|||||||
| 10 | note for Duck "can fly<br>can swim<br>can dive<br>can help in debugging" |
|||||||
| 11 | Animal <|-- Fish |
|||||||
| 12 | Animal <|-- Zebra |
|||||||
| 13 | Animal : +int age |
|||||||
| 14 | Animal : +String gender |
|||||||
| 15 | Animal: +isMammal() |
|||||||
| 16 | Animal: +mate() |
|||||||
| 17 | class Duck{ |
|||||||
| 18 | +String beakColor |
|||||||
| 19 | +swim() |
|||||||
| 20 | +quack() |
|||||||
| 21 | } |
|||||||
| 22 | class Fish{ |
|||||||
| 23 | -int sizeInFeet |
|||||||
| 24 | -canEat() |
|||||||
| 25 | } |
|||||||
| 26 | class Zebra{ |
|||||||
| 27 | +bool is_wild |
|||||||
| 28 | +run() |
|||||||
|
29 | } |
||||||
| 30 | ``` |
|||||||
|
31 | > [!NOTE] |
||||||
| 32 | > This diagram is evolving as I am in the process of implementing |
|||||||
| 33 | > the code for this. Anything could change, so come back often. |
|||||||