Why can I call a private method of another instance of the same type outside of that instance? [duplicate]
This question already has an answer here: Why and how does C# allow accessing private variables outside the class itself when it's within the same containing class? 3 answers If I have ObjectA, and it has a private method GetPrice() and also has a "parent" field of the same type, why am I able to call GetPrice() on the parent instance from within the child instance? Example: private decimal GetPrice() { ObjectA parent = Parent; if(parent != null) { return parent.GetPrice(); // Why is this OK? } return 0; } Because private means "not accessible to other types ", not "not accessible to other