Encapsulation in object-oriented programs

  • Authors:
  • Jiun-Liang Chen;Feng-Jian Wang

  • Affiliations:
  • Institute of Computer Science and Information Engineering, National Chiao Tung University, HsinChu, 30050, Taiwan, R.O.C.;Institute of Computer Science and Information Engineering, National Chiao Tung University, HsinChu, 30050, Taiwan, R.O.C.

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 1996

Quantified Score

Hi-index 0.00

Visualization

Abstract

In stead of decomposing data and procedures, object-oriented (OO) programming encapsulates the both through an object. An object is instantiated from a class which defines attributes (related data) and methods (operational procedures). The definition of a class may be recursive since the class can encapsulate the instance(s) of another classes as its attributes. An object containing other objects is called a complex object. The form of a most primitive object, an object containing no other object, is nothing but a data entity and is called a simple object. Encapsulation solidates an object by hiding the details; it may also obstruct dependency analysis for complex objects by information hiding.