Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question