Displaying 1 result from an estimated 1 matches for "showyourposit".
2005 Dec 24
8
Prototype OOP example
Hi,
Here is what I want to do:
Labour = Class.create();
Labour.prototype = {
initialize:function(name){
this.name = name;
}
}
What I want to do is create a class called "Worker" which will inherit from
"Labour", and the signature of "initialize" is "function(name, position)".
May I ask what should do?
Thank you all very much for the