A prototype chain is analogous to the super/sub-class inheritance mechanisms in an object-oriented environment. It is not quite the same, however, because the inheritance takes place at the object level and there are no true classes to instantiate. Instead you clone existing objects.
ECMA 262 edition 2 - section - 4.2.1
ECMA 262 edition 2 - section - 8.6.2
ECMA 262 edition 3 - section - 4.2.1
ECMA 262 edition 3 - section - 8.6.2
Prev | Home | Next |
Prototype-Based Inheritance | Up | Prototype object |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |