Difference between object oriented and object based language

后端 未结 4 1463
轮回少年
轮回少年 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 16:05

    Object Oriented is based on message passing, no classes or inheritance involved.

    "Object oriented" coined by Dr Alan Kay has been hijacked by C++, Java and Co, Dr Alan Kay made it clear that OO was messages, not classes. Dr Alan Kay On OO "OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things."

    Erlang, LISP, Smalltalk are OO programming languages, not C++, Java, c# etc which are in effect object based.

提交回复
热议问题