Hi All
I want to
design a class AlgorithmClass, in that class, it will use an unknown
class UserClass which will be developed later by its user. In the
UserClass, there are several methods UserMethodA(...), UserMethodB(...)
...etc. One example is UserMethodX(double[] x, double[]y, ArrayList
z). The problem is at the time of design AlgorithmClass, the developer
does not know any thing about the UserMethods look like and what kind
variables will be passed to those methods. What he wants is the return
values from the UserClass Methods by calling those methods. So in the
AlgorithmClass, it will have a reference to the UserClass and calling
UserClass.UserMethodA, ....... using delegate method or anything that
works.
Possible to design this AlgorithmClass?
Thanks
Chang