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

PlantUML : Draw composition in class diagram

Tags: class human brain

Class composition is defined using the symbol *--

 

classComposition.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 : Draw composition in class diagram

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×