3 ms·
> In C#, for example, reference objects and value objects live entirely separate lives. Value objects are always passed by value. *You cannot take the the addre
by azth 5y ago
> In C#, for example, reference objects and value objects live entirely separate lives. Value objects are always passed by value. *You cannot take the the address of a value object and pass that around.*
The last sentence is wrong. You can pass structs by ref in C# (ref, in, out parameters). Java will also allow taking references to value types and passing them.