Hello guys, I wanted to ask if there is any way such that I can pass a function to the constructor of the class and then store it as some variable so that I can execute it later.
Thanks in advance.
Help Needed: How can I pass a function to a class constructor and then store it as some class variable?
Hello guys, I wanted to ask if there is any way such that I can pass a function to the constructor of the class and then store it as some variable so that I can execute it later.
Thanks in advance.