Content deleted Content added
Saurabhce121 (talk | contribs) No edit summary |
Loadmaster (talk | contribs) →General definition: reword |
||
Line 65:
== General definition ==
In general, encapsulation is one of the four fundamentals of OOP ([[object-oriented programming]]). Encapsulation is used to hide the
This mechanism is not unique to object-oriented programming. Implementations of [[abstract data types]], e.g. [[module (programming)|modules]], offer a similar form of encapsulation. This similarity stems from the fact that both notions rely on the same mathematical fundament of an [[existential type]].<ref>Pierce (2002), Section 24.2 "Data Abstraction with Existentials"</ref>
|