Sunday 4 June 2023

PlantUML: Arrow to specify more meaning to the relationship label

Using the arrow (< or >), we can clearly specify which object act on other object.

 

Example

Person --> Address : lives at >
Car --> Person : < owns

labelArrow.txt

@startuml

title "Class Composition"

class Person
class Address
class Car

Person --> Address : lives at >
Car --> Person : < owns

@enduml

Above snippet generate below diagram.




 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment