Core difference between object oriented and object based language

后端 未结 8 1866
天涯浪人
天涯浪人 2020-12-12 17:05

I want to know what is the core difference between

Object Oriented and Object based languages

I have read many post all of them are saying

8条回答
  •  忘掉有多难
    2020-12-12 18:04

    There are 4 major elements that a Programming Language must conforms to in order to be a true object-oriented language. These are: Abstraction, Encapsulation, Modularity & Hierarchy.

    However, we can call a Language Object based if that supports the first there elements. As soon as a programming language supports the concept of Object, inherently it supports the first three elements as they are inherent feature of an Object.

    JavaScript as a language can not be said a Object Oriented but Object Based Language as it doesn't support Hierarchy (especially Inheritance).

提交回复
热议问题