Created
July 12, 2016 03:11
-
-
Save hanjae-jea/59708757b8527402798c1108e29f8e1c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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