Created
March 12, 2014 11:30
-
-
Save jaytaph/9505111 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
import io; | |
class foo { | |
public method f1() { | |
io.print("F1: ",self.__name(), "\n"); | |
} | |
public method f2() { | |
self.f1(); | |
} | |
public method f3() { | |
io.print("F3: ",self.__name(), "\n"); | |
} | |
} | |
class bar extends foo { | |
public method f1() { | |
io.print("BF1: ",self.__name(), "\n"); | |
self.f3(); | |
parent.f3(); | |
parent.f1(); | |
} | |
} | |
b = bar(); | |
b.f2(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment