Encapsulation (computer programming): Difference between revisions

Content deleted Content added
No edit summary
Line 19:
== In combination ==
{{Expand section|date=December 2009}}
 
With regards to combination (or bundling) data, this is prevalent in any object that is created. An object's state will depend on its methods that do work on or with the object's internal data.
 
An analogy can be made here with the notion of a [[Information hiding|capsule]], which not only encloses its contents, but also protects it from the exterior environment.<ref name=Dale/>