Mermaid UML diagrams
Ajit Singh
1 min read
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()
}
print("hello world")
0
Subscribe to my newsletter
Read articles from Ajit Singh directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by