PROPERTY:  Object::prototype = 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:
Cat.prototype.color = null
Sheeba.color = "black"

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information