class - How to Inherit from two or more classes in JavaScript -
so have classes
function node() { node.prototype.setname=function(_n){this.name=_n;}; } function textablenode() { textablenode.prototype.settext=function(_t) {this.text=_t;}; } function attributionalnode() { attributionalnode.prototype.setattribute=function(_a) {this.att=_a;}; }
all of these inherited node(); how implement new class such universalnode(); have methods?
Comments
Post a Comment