#993 Added mermaid documentation for class diagram-minor fixes

This commit is contained in:
Ashish Jain
2019-10-15 00:32:21 +02:00
parent 5949d01821
commit 1ae1313edd

View File

@@ -16,16 +16,16 @@ Mermaid can render class diagrams.
Animal : +String gender Animal : +String gender
Animal: +isMammal() Animal: +isMammal()
Animal: +mate() Animal: +mate()
Duck{ class Duck{
+String beakColor +String beakColor
+swim() +swim()
+quack() +quack()
} }
Fish{ class Fish{
-int sizeInFeet -int sizeInFeet
-canEat() -canEat()
} }
Zebra{ class Zebra{
+bool is_wild +bool is_wild
+run() +run()
} }
@@ -304,10 +304,11 @@ class Color{
```mermaid ```mermaid
classDiagram classDiagram
class Shape class Shape{
<<interface>> Shape <<interface>>
Shape : noOfVertices noOfVertices
Shape : draw() draw()
}
class Color{ class Color{
<<enumeration>> <<enumeration>>
RED RED