B
Bob Rock
Hello,
this may seem a strange question, but is there a way of being able to call
methods of a class through an array of that class when not referencing a
specific object in the array.
In other words, defined a class class_A I'd like to be able to do the
following:
// defining an array of class_A objects
class_A myArray[] = new class_A[10];
// calling MyMethod on the array
myArray.MyMethod();
where MyMethod is something I defined (somehow).
Is there a way to obtain such a behavior???
Thx.
Bob Rock
this may seem a strange question, but is there a way of being able to call
methods of a class through an array of that class when not referencing a
specific object in the array.
In other words, defined a class class_A I'd like to be able to do the
following:
// defining an array of class_A objects
class_A myArray[] = new class_A[10];
// calling MyMethod on the array
myArray.MyMethod();
where MyMethod is something I defined (somehow).
Is there a way to obtain such a behavior???
Thx.
Bob Rock