4 ms·
"Although it's a fundamental feature of object-oriented programming, remarkably few OO languages really follow it. (Eiffel is naturally an exception.) Most lang
by augustk 6y ago
"Although it's a fundamental feature of object-oriented programming, remarkably few OO languages really follow it. (Eiffel is naturally an exception.) Most languages simulate it by convention, hence the habit of using accessors such as getAge in Java and C++ programs."
https://martinfowler.com/bliki/UniformAccessPrinciple.html https://martinfowler.com/bliki/UniformAccessPrinciple.html