Domanda di colloquio di Hi-Rez Studios

Can you set a reference to null.

Risposta di colloquio

Anonimo

21 mag 2021

No, you cannot reference a null. References always refer to an object wether valid or not. If you must have a null, you can create a pointer to a Null object, however referencing a null is like dividing by zero.