Untitled
By: a guest | Nov 18th, 2009 | Syntax:
None | Size: 0.79 KB | Hits: 225 | Expires: Never
# Animal/type.properties
_db = zoo
_table = T_ANIMAL
_id = ANI_ID
#tells Helma where to store the prototype's name
_prototype = ANI_PROTOTYPE
# An animal has a name and a birthday
_name = ANI_NAME
birthday = ANI_BIRTHDAY
# Dog/type.properties
_db = zoo
_table = T_ANIMAL
_id = ANI_ID
# tells Helma where to store the prototype's name
_prototype = ANI_PROTOTYPE
# A dog is an animal
_extends = Animal
_extensionId = dogu dugu
# Dogs have an additional breed and color
breed = DOG_BREED
color = DOG_COLOR
/********* Dog.js ***********/
Dog.prototype.__defineSetter__("name", function(name) {
this._name = name + " (setter)";
});
Dog.prototype.__defineGetter__("name", function(name) {
return this._name;
});