Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

PlantUML: Use dotted line in the class diagram

Tags: class human brain

Using .. (dots), we can use dotted lines to connect entities in Class diagram.

 

dottedLine.txt

@startuml

title "Class Composition"

class Human

Class Brain
class Lungs
class Liver
class Heart
class Stomach
class Kidney
class Bladder

class Frontal
class Parietal
class Temporal
class Occipital

Human *.. Brain
Human *.. Lungs
Human *.. Liver
Human *.. Heart
Human *.. Stomach
Human *.. Kidney
Human *.. Bladder

Brain *.. Frontal
Brain *.. Parietal
Brain *.. Temporal
Brain *.. Occipital

@enduml

 

Above snippet generate below diagram.


 

 

Previous                                                    Next                                                    Home


This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

PlantUML: Use dotted line in the class diagram

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×