Skip to content

Instantly share code, notes, and snippets.

@jsyeo
Created August 28, 2015 03:40
Show Gist options
  • Save jsyeo/a95ac715730b3fc97f74 to your computer and use it in GitHub Desktop.
Save jsyeo/a95ac715730b3fc97f74 to your computer and use it in GitHub Desktop.
Invoke Special Super Call
public class Main {
public static void main(String[] args) {
B b = new B();
b.foo();
}
}
class A {
void foo() {
}
}
class B extends A {
@Override
void foo() {
super.foo();
}
}
class C extends A {
@Override
void foo() {
super.foo();
}
}
class D extends A {
@Override
void foo() {
}
}
class E extends A {
@Override
void foo() {
}
}
class F extends A {
@Override
void foo() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment