On the object-orientedness of C++

  • Authors:
  • Chung-Shyan Liu

  • Affiliations:
  • Department of Information and Computer Engineering, Chung Yuan Christian University, Chung-Li, 32023, Taiwan, R.O.C.

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 1991

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this note, two different definitions of object-oriented programming, whether a class is equivalent to a type or not, will be presented. Then the relative merits of the two definitions, regarding encapsulation of objects, type checking, genericity, and inheritance of objects, will be discussed. In particular, a C++ sample program will be given to illustrate that the encapsulation of objects may be violated.