I saw several ways of drawing constructors, namely here with tails below them (function call), but most often here without tails and without returning the arrow (sometimes with the <<create>> label).
I know that there are differences between UML1 and UML2, and I'm not sure if this is one of them, however, in any case, I cannot find references to how I can represent method calls from the constructor of an object.
EDIT: example java code below. Say the entry point is foo() . The main thing that interests me is how to draw the constructor of B() .
class A { private B b; public foo() { b = new B(this); } } class B { public B(A a) { foo(); a.bar(); } }
source share