Skip to content

Instantly share code, notes, and snippets.

@hanjae-jea
Created July 12, 2016 03:11
Show Gist options
  • Save hanjae-jea/59708757b8527402798c1108e29f8e1c to your computer and use it in GitHub Desktop.
Save hanjae-jea/59708757b8527402798c1108e29f8e1c to your computer and use it in GitHub Desktop.
var GrandParent = $Class({
value: '할아버지'
});
var Parent = $Class({
value: '아버지',
getGrandFather: function(){
LOG(this.$super.value);
}
}).extend(GrandParent);
var Child = $Class({
}).extend(Parent);
var GrandChild = $Class({
}).extend(Child);
var oParent = new Parent();
oParent.getGrandFather();
var oChild = new Child();
oChild.getGrandFather();
var oGrandChild = new GrandChild();
oGrandChild.getGrandFather();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment