H
howa
Hello,
I have a class, which has a method say, e.g.
int getMark(int x, int y) {
return x + y;
}
However, I want the getMark() method can be changed in runtime, maybe
change to...
int getMark(int x, int y) {
return x + 10 * y;
}
anyway...i want user to be able to change the behavior of this method
(change the mark calculation), but they don't need to recompile the
program everytime,
any method is recommended?
thanks.
I have a class, which has a method say, e.g.
int getMark(int x, int y) {
return x + y;
}
However, I want the getMark() method can be changed in runtime, maybe
change to...
int getMark(int x, int y) {
return x + 10 * y;
}
anyway...i want user to be able to change the behavior of this method
(change the mark calculation), but they don't need to recompile the
program everytime,
any method is recommended?
thanks.