Help Needed: How can I pass a function to a class constructor and then store it as some class variable?

Правка en1, от parveen1981, 2021-06-21 17:44:05

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)