Implementation benefits of C++ language mechanisms
Communications of the ACM
What Is Object-Oriented Programming?
IEEE Software
Hi-index | 0.00 |
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.