How is this private if we’re directly accessing it?
Dmitrii
95

Jeremy is correct. It’s not super intuitive, but it’s correct that one instance of a class has access to other instances of the same class’ privates (which sounds dirty). Here’s an example in C#. https://dotnetfiddle.net/UewNIu

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.