Shaare your links...
3229 links
L!NKS
Retour au blog
Login
RSS Feed
ATOM Feed
Tag cloud
Picture wall
Daily
Links per page:
20
50
100
page 1 / 1
oop - Subclassing a class with required parameters in JavaScript - Stack Overflow
function Parent( a ) {
this.a = a;
}
function Child( a, b ) {
Parent.call( this, a ); // this is crucial
this.b = b;
}
Child.prototype = Object.create( Parent.prototype );
Child.prototype.constructor = Child;
permalink
-
-
https://stackoverflow.com/questions/8460493/subclassing-a-class-with-required-parameters-in-javascript
javascript
Links per page:
20
50
100
page 1 / 1