I have the following code:
public class PersonInitializer
{
private Person _person;
public static Person LoadFromFile(string path)
{
Per
In C# (and Jave, C++) the scope of a field is based on the class, so all instances of the class can access private members of other instances of the same class.
In languages like Eiffel (and Smalltalk) the scope of a field is based on the instance, so a private field can only be access by the same instance. The Eiffel method may be better, but C++ won the hearts and minds of most programmer, hence very few people question “class based scopeing”