Second episode about OOP (Object Oriented Programming), in which we create an array of objects.
In the past we have created arrays of simple types, like int or float, and we have also created two instances of Car. Here we are going to combine both things: we are going to create instances of Car, but instead of making one or two we will create 100, and store all those cars inside one array.
Of course these rectangular "cars" don't look very spectacular, but in coming episodes we will create arrays of particles that decide in which direction to go. I hope then you start seeing how you can use arrays of objects.

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…