Content deleted Content added
Salix alba (talk | contribs) m →top: remove repeated link |
No edit summary Tags: Mobile edit Mobile app edit iOS app edit |
||
Line 1:
{{Short description|Bundling of data}}
In [[object-oriented programming]] (OOP), '''encapsulation''' refers to the bundling of data with the methods that operate on that data, or the restricting of direct access to some of an object's components.<ref name="Rogers01" /> Encapsulation is used to hide the values or state of a structured data object inside a [[Class (computer programming)|class]], preventing direct access to them by clients in a way that could expose hidden implementation details or violate state invariance maintained by the methods.
|