“Anything can be made to work if you fiddle with it. If you fiddle with something long enough, you'll break it.”
|--Murphy's Technology Laws|
IN THIS CHAPTER
Encapsulation is one of the pillars of object-oriented programming. The purpose of encapsulation is separation of the interface from implementation and modularity of application components. It is generally recommended that you make data members private or protected and provide public accessor and mutator functions (also known as getter and setter functions). It is also ...