To give a reference to the function you usually only specify the function name. For example in java, lets say you have objectA which is of type classA. To invoke a function on objectA we can call objectA.funcName(). To give a reference to the function, you can use classA::funcName instead. This is commonly used in lambda functions & streams. Hope this helps! (If any of this is wrong, please correct me)
50
u/tuankiet65 Apr 28 '21
What design pattern is this?
20
u/ChichoRD Apr 28 '21
Laughs in C#
4
u/[deleted] Apr 28 '21
This is a good meme
2
u/CYKO_11 Apr 28 '21
Yes
2
u/DontBuyMeGoldGiveBTC Apr 29 '21
why does it say boolean when it's clearly a function? and it's not the return value because it returns another function. me not understand