@User uploaded a file:
Refer to function variable before its initialized and commented: I am pretty sure this has been asked before, but I couldn’t find any satisfying answer. If my listener was an interface, I could use
object
and refer to
this
. But in case of functions, how to solve this without resorting to using member fields?