Wait, I see it. () is your voodoo on the fly, shot in the arm for unreadable code, function declaration. Appvar2 is the declaration. Appvar1 is the ref, so in theory this is being injected, and the reference holds outside the function declaration.
The constructor function pointer is also set inside the first function declaration.
tulipty question really. To emphasise the manner of object references, there should really be some code after all this performs an operation on appvar1 that was defined on appvar2.
IMVHO.
I think the question is fine. It checks core understanding of basic concepts. That is if the interviewer himself does too...



