Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

I want to model a list of object (in this example a list of cars) and I have some doubts

sequence diagram

  1. In the first loop, create a "Car", is correct to use "addCar" like that? (I'm using Umbrello and he don't let me put the return values), I mean, "car" is just one instance or I can use it as if it where multiples instances when is inside a loop?
  2. In the second loop, How do I "get a car" from the list?, I want to make things on that car, I just make the lifetime of "car" from the first loop longer? or there is another way to show this?
share|improve this question

closed as unclear what you're asking by Robert Harvey, durron597, MichaelT, GlenH7, Snowman Jul 4 at 17:18

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

    
You probably should choose a better example than assembling cars. –  Robert Harvey Jul 1 at 22:21

Browse other questions tagged or ask your own question.