Why does the following prints "Point" to the console instead of "(2, 3)"?
Is it because Console.WriteLine uses an object reference internally?
2 Replies
Yes,
Console.WriteLine()
takes an object
So you need to override
the object
's .ToString()
method
Rather than hiding it with new
alright thank you 😄
it really threw me off cause I always believed that it just executes whatever .ToString exists on the object that's passed, but since it's using object internally it makes sense!