Skip to content

Instantly share code, notes, and snippets.

@jaytaph
Created March 12, 2014 11:30
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 jaytaph/9505111 to your computer and use it in GitHub Desktop.
Save jaytaph/9505111 to your computer and use it in GitHub Desktop.
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