You'll set a prototype instance variable to point to the parent in the inheritance chain.
方法是设置prototype实例变量使其指向继承链的父。
If two Entities are connected via an inheritance chain or an Association, they are said to be connected.
如果两个实体通过一个继承链或是Association连接起来,我们就称其为连接的。
Copies members from the base class to the prototype associated with the derived class, and continues this process up the inheritance chain.
将成员从基类复制到与派生类相关联的原型,并沿继承链向上继续执行此过程。
Therefore, the prototype chain can be used to implement inheritance, as you'll see later.
因此,该原型链可用于实现继承(在后面讨论)。
A prototype chain is a finite chain of objects which is used to implemented inheritance and Shared properties.
原型链是一个由目标构成的有限目标链因为完成担当和同享属性。
A prototype chain is a finite chain of objects which is used to implemented inheritance and Shared properties.
原型链是一个由目标构成的有限目标链因为完成担当和同享属性。
应用推荐