All Objects
Object Object
PROPERTY: Object::prototype
Object.
prototype.
name = value
Any object that can call a constructor function has a
prototype
property allowing the addition of properties and methods.
The following example first creates a 'color' property for the 'Cat' object, and then creates a specific instance of it:
Code:
Cat.prototype.color = null
Sheeba.color = "black"
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information