Content deleted Content added
TakuyaMurata (talk | contribs) moved to "Information_hiding" |
This a rewrite (with sources!) of Encapsulation (computer science), which will soon become a redirect here. |
||
Line 1:
{{under construction}}
In [[object-oriented programming]]<!-- and related fields, like [[OODMBS]],--> '''encapsulation''' is used to refer to two related but distinct notions:
* 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 0521780985, p.522</ref><ref>{{cite book|last=Pierce|first=Benjamin|authorlink=Benjamin C. Pierce|title=[[Types and Programming Languages]]|publisher=MIT Press|date=2002|id=ISBN 0-262-16209-1}} p. 266</ref>
* A language construct that facilitates the bundling of data with the methods operating on that data.<ref>Wm. Paul Rogers, [http://www.javaworld.com/javaworld/jw-05-2001/jw-0518-encapsulation.html?page=9 ''Encapsulation is not information hiding''], JavaWorld.com, 05/18/01</ref><ref>Thomas M. Connolly, Carolyn E. Begg, ''Database systems: a practical approach to design, implementation, and management'', Edition 4, Pearson Education, 2005, ISBN 0321210255, Chapter 25, "Introduction to Object DMBS", section "Object-oriented concepts", p. 814</ref>
== References ==
{{reflist}}
[[Category:Object-oriented programming]]
|