Content deleted Content added
Reverted to revision 666932101 by 210.56.104.40 (talk): Undoing changes made to lead, possibly test edits, please use sandbox. (TW) |
Changed lead to make it comply with Wikipedia standards, the article name should be bold in first sentence |
||
Line 1:
'''Encapsulation''' is the packing of data and functions into a single component. The features of encapsulation are supported using classes in most object-oriented programming languages, although other alternatives also exist. It allows selective hiding of properties and methods in an object by building an impenetrable wall to protect the code from accidental corruption.
In programming languages, <!-- [[object-oriented programming language]]--> <!-- and related fields, like [[OODMBS]],-->
* A language mechanism for restricting access to some of the [[object (computer science)|object]]'s components.<ref>[[John C. Mitchell]], ''Concepts in programming languages'', Cambridge University Press, 2003, ISBN 0-521-78098-5, p.522</ref><ref name=Pierce>{{cite book|last=Pierce|first=Benjamin|authorlink=Benjamin C. Pierce|title=[[Types and Programming Languages]]|publisher=MIT Press|year=2002|isbn=0-262-16209-1}} p. 266</ref>
|