You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really useful, if the mermaid syntax for classDiagram would allow diagramming inner classes (or enumerations).
Currently inner classes (and enumerations) have to be modeled separately, e.g.
classDiagram
class Animal {
-int age
-Gender gender
+mate()
+age() int
}
Animal *-- Gender
class Gender {
<<enumeration>>
MALE
FEMALE
OTHER
}
Loading
Nesting class/enumeration definitions could be achieved using a syntax like...
mermaid
classDiagram
class Animal {
class Gender {
<<enumeration>>
MALE
FEMALE
OTHER
}
-int age
-Gender gender
+isMammal()
+age() int
}
Animal *-- Animal::Gender
The text was updated successfully, but these errors were encountered:
hattesen
changed the title
Syntax for inner classes
Class Diagram: syntax for inner classes
Dec 1, 2022
It would be really useful, if the mermaid syntax for
classDiagram
would allow diagramming inner classes (or enumerations).Currently inner classes (and enumerations) have to be modeled separately, e.g.
Nesting class/enumeration definitions could be achieved using a syntax like...
The text was updated successfully, but these errors were encountered: