Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

constructor in UML sequence diagram

what is the meaning of the following sequence diagram and exactly the constructor(that is represented as a create object)?

enter image description here

like image 427
Chriss Avatar asked Jan 14 '23 03:01

Chriss


2 Answers

The message's name "Class B()" is wrong : it should be "create".
Is that what confusing you ?

like image 133
Sylvain H. Avatar answered Jan 23 '23 22:01

Sylvain H.


It means that ClassA instantiates ClassB. The arrow represents that the constructor of ClassB is called by ClassA

like image 41
Cratylus Avatar answered Jan 23 '23 22:01

Cratylus