面向对象和基于对象的编程语言有什么区别?
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是基于对象的.