I have a "class" with properties and methods. And I have instances of that class in an array in some other place in the code. Now I want to iterate through all of them and for each call a method. Something like this:
But of course it looks up a global function draw() which is not there. How do I access object's methods in this situation?