I want to model a list of object (in this example a list of cars) and I have some doubts
- 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?
- 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?