Jump to content

Encapsulation (computer science)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Vera Cruz (talk | contribs) at 08:02, 16 January 2003. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer science, encapsulation describes how objects contain and manipulate data. Encapsulated code can generally be rewritten without any need to rewrite the encapsulating code.

See also: instance variable, instance method