Skip to content

Encapsulation Branda

blee3372 edited this page Jan 20, 2015 · 1 revision

"Encapsulation is the technique of making the fields in a class private and providing access to the fields via public methods. If a field is declared private, it cannot be accessed by anyone outside the class, thereby hiding the fields within the class. For this reason, encapsulation is also referred to as data hiding." http://www.tutorialspoint.com/java/java_encapsulation.htm