问题描述
面向对象和基于对象的编程语言有什么区别? JavaScript是面向对象还是基于?
What is the difference between an object oriented and an object based programming language? Is JavaScript is an object oriented or based?
推荐答案
说:
-
面向对象编程的某种限制版本,其中一个或多个限制适用:( a)没有隐式继承,(b)没有多态性,(c)可用值的一个非常简化的子集是对象(通常是GUI组件)。
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 is object based.
这篇关于面向对象和基于对象的语言之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!