Content deleted Content added
Elevated the definition to improve the flow of the article. The definition will help readers understand the later sections. |
There is no mention of "four fundamentals" in the article on OOP. Removed it. |
||
Line 12:
== General definition ==
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 fundamental of an [[existential type]].<ref>{{harvnb|Pierce|2002|loc=§ 24.2 Data Abstraction with Existentials}}</ref>
|