Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created July 9, 2017 06:05
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/e781cf0bd46e78b2d77eedf5cbae27c7 to your computer and use it in GitHub Desktop.
Save goofmint/e781cf0bd46e78b2d77eedf5cbae27c7 to your computer and use it in GitHub Desktop.
var CatClass = AnimalClass.extend(function (super_) {
return {
name: 'CatClass',
method: {
constructor: function (params) {
super_.constructor.call(this, params);
this._voice = 'mew';
},
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