At What point should you understand References?
- by Vaccano
I asked a question like this in an interview for a entry level programmer:
var instance1 = new myObject{Value = "hello"}
var instance2 = instance1;
instance1.Value = "bye";
Console.WriteLine(instance1.Value);
Console.WriteLine(instance2.Value);
The applicant responded with "hello", "bye" as the output.
Some of my co-workers said that "pointers" are not that important anymore or that this question is not a real judge of ability.
Are they right?