Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
function Parent(first, last) {
this.first = first;
this.last = last;
this.coordinates = [0, 0];
}
Parent implements {
speak: function (message) {
return this.first + ' ' + this.last + ': ' + message;
},
walk: function (horizontal, vertical) {
var coordinates = this.coordinates;
coordinates[0] += horizontal;
coordinates[1] += vertical;
return coordinates;
}
};
function Child(first, last) extends Parent {
super(first, last);
}
Child implements {
speak: function (message) {
return super(message).toUpperCase();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.