A language should support several features of Object Oriented Programming concepts to claim that they are object oriented. They can be classified into the following two categories, depending upon the features they support:
- Object-based Programming Language: It is the style of programming that primarily supports encapsulation and object identity.
- Major features that are required for object-based programming are:
- Data Encapsulation
- Data hiding and access mechanisms
- Automatic initialization and clear up of objects
- Operator overloading
- Languages that support programming with objects are said to be object-based programming languages.
- They do not support inheritance and dynamic binding.
- Example: Ada
- Object-oriented Programming Language: It incorporates all the features of object-based programming features along with two additional features, namely inheritance and dynamic binding.
- Thus, it can be characterized by the following statement: object based features + inheritance + dynamic binding.
- Example: C++, Smalltalk, Java
No comments:
Post a Comment