Difference between object oriented and object based language

后端 未结 4 1481
轮回少年
轮回少年 2020-12-24 15:29

What is the difference between an object oriented and an object based programming language? Is JavaScript is an object oriented or based?

4条回答
  •  天涯浪人
    2020-12-24 15:52

    Wikipedia says:

    In computer science, the term object-based has two different senses:

    • A somehow limited version of object-oriented programming, where one or more of the following restrictions applies: (a) There is no implicit inheritance, (b) there is no polymorphism, (c) only a very reduced subset of the available values are objects (typically the GUI components).

    • Prototype-based systems (that is, those based on "prototype" objects that are not instances of any class).

    Javascript is object based.

提交回复
热议问题