View Single Post
Can I call a like-named custom method for all in a list of objects?
Old
thefoster
Guest
 
Status:
Posts: n/a
Default Can I call a like-named custom method for all in a list of objects? - 02-07-2010, 01:52 PM

I have a list of different objects (different fish objects).
For each fish object I have defined my own method (called 'swim' for each).

Is it possible to invoke all of the objects' 'swim' methods using the "for all together"?

When I grab the "item_from_list" reference I can only see the default methods.

Cheers.
   
Reply With Quote