Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created July 9, 2017 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/8d6c7e83cdf833a7e9b6e4c8b6273928 to your computer and use it in GitHub Desktop.
Save goofmint/8d6c7e83cdf833a7e9b6e4c8b6273928 to your computer and use it in GitHub Desktop.
var DogClass = AnimalClass.extend(function (super_) {
return {
name: 'DogClass',
method: {
constructor: function (params) {
super_.constructor.call(this, params);
this._voice = 'bow wow';
},
cry: function() {
return super_.cry(this._name, this._voice);
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment