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.
No comments:
Post a Comment