How do I create a new instance of a method object from a string? #160
-
I have a class derived from I looked inside the But primarily, I would like to know how I can create an object for a voting method specified in a string. Is there a function for this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I have found the answer to my primary question myself. To add the method to the election's
Because
I'm not closing this discussion yet, as I'm still curious about that variable called |
Beta Was this translation helpful? Give feedback.
-
Yes it should work. |
Beta Was this translation helpful? Give feedback.
Yes it should work.
The magic is just here, directly into the condition.