plantuml / backlog

Contains all issues for plantuml that are not currently working-in-progress
0 stars 0 forks source link

Add support for derived/dependent fields/properties in class diagrams #42

Open mwhincup opened 6 years ago

mwhincup commented 6 years ago

Matlab is not the only language to support the OOP concept of derived/dependent fields/properties. See here I believe C# does too.

Using the example from the plantuml documentation, and inline with the UML syntax for dependent properties, one could specify, e.g. field2as a derived property, with the / prefix, thus:

@startuml

class Dummy {
 -field1
 /#field2
 ~method1()
 +method2()
}

@enduml
arnaudroques commented 1 year ago

You can have this.

@startuml
class Dummy {
 -field1
 {method} #field2
 ~method1()
 +method2()
}
@enduml

Does it help?