Created
February 29, 2012 19:50
-
-
Save jamesflorentino/1943942 to your computer and use it in GitHub Desktop.
This file contains 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
class Animal | |
move: (x) -> @onMove x | |
onMove: (x) -> return | |
class Dog extends Animal | |
onMove: (x) -> # x is undefined | |
dog = new Dog() | |
dog.move 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment