-3

Since Classical inheritence is well understood both in javascript and the programmer community and almost all object-oriented code written in javaScript uses this paradigm.

Also prototypal inheritance is very memory efficient.

I am designing an API for javascript but could not decide which one to use for my API

4

1 回答 1

1

如何决定使用哪一个

很简单,纯原型和伪经典方法之间没有太大区别。只有一个问题:

你需要构造函数/初始化器吗?

于 2013-07-15T19:56:42.330 回答