I'm writing a utility class that displays a series of data points and instead of having to loop through every instance of the class to set it I'd like to set it all at once (keeping the option of setting an individual object if I want). Is this possible? Thanks!
Instead of writing this in the main loop:
for (int i=0;i < p.length;i++) p[i].update();
or this:
for (int i=0;i < p.length;i++) {p[i].update();p[i].foo(i,someVariable);p[i].bar(LEFT);}
I'd like to write this (or something like it):
class.update();class.foo(someVariable);class(LEFT);
1