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 2000 by Infinite Software Solutions, Inc.
Trademark Information