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.
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en1 |
|
parveen1981 | 2021-06-21 17:44:05 | 303 | Initial revision (published) |