|
|
|
|
|
by MartinCron
5808 days ago
|
|
Sure, the private access modifier doesn't strictly "enforce" encapsulation. Perhaps the term should be "language supported". I guess, for me, that the point of private is to clearly communicate the intent of the interface (small "i" interface) of a type. That intent is generally "don't use this, use this other part instead" or "if you couple, to this, it may break on you". There are other ways of expressing that intent, I just really like having the compiler help me and my collaborators from making stupid mistakes. |
|