4 ms·
The essays at the beginning of Holub on Patterns completely changed my understanding of OOP. Implementation inheritance violates encapsulation. So do getters
by olivolive 16y ago
The essays at the beginning of Holub on Patterns completely changed my understanding of OOP.
Implementation inheritance violates encapsulation. So do getters and setters. They let code outside your object rely on your implementation and make your system brittle.