I have a class which gets a function as a parameter. I need to call a function then based on the previous function passed. Is there a way to do so?
For example, if myfunc() has been passed to the class, I need to call myfunc1() as it is the corresponding function(I already have the relationships between functions saved).