An extremely important and useful concept is that of encapsulation; it has direct impact on
cohesion, decoupling, integrity, reusability and results in better readable and maintainable code. Exactly what is it, why do you need it and how can you achieve this? Read this three-part article series.
Encapsulation basically means nothing more than restricting access to a class's methods and properties. The power however lies in the intention:
With encapsulation, your are
...