D
D
ddddd tttt2018-03-26 08:45:40
UML
ddddd tttt, 2018-03-26 08:45:40

Do I need to show the connection if the object is created inside the class in a variable?

An object is created inside the method but is assigned not to a field but to a variable, is this a composition?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Sirotin, 2018-03-29
@visirok

If the object has its own structure - yes. If it's a simple object of type Integer or Double in Java, no.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question