+ 3
object constructors can make many objects, an object initialiser creates only one object. take the code below as an example, here I used object constructors for the particles, and instead of having to create like 250 variables using the initialiser, I push all the particles into an array https://code.sololearn.com/WOaKuavy11G6/?ref=app
5th Feb 2018, 7:58 AM
wout werkman
wout werkman - avatar