1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.



Definition: Encapsulation in Object Oriented programming refers to the convention of not allowing one part of a program to modify another part of the program without an interface. For example, one object should not modify the internal state (the instance variables) of another object without an interface. Doing so may cause undesirable and difficult to debug behavior.

©2014 About.com. All rights reserved.