gpt4 book ai didi

javascript - 面向对象语言和基于对象语言的区别

转载 作者:可可西里 更新时间:2023-11-01 01:40:58 25 4
gpt4 key购买 nike

面向对象和基于对象的编程语言有什么区别? JavaScript 是面向对象的还是基于对象的?

最佳答案

Wikipedia说:

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 是基于对象的。

关于javascript - 面向对象语言和基于对象语言的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6954293/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com