Skip to content

Instantly share code, notes, and snippets.

@tluyben
Created June 23, 2013 11:52
Show Gist options
  • Save tluyben/5844759 to your computer and use it in GitHub Desktop.
Save tluyben/5844759 to your computer and use it in GitHub Desktop.
class Bla {
class A {
A() {
c();
}
void c() {
System.out.println("in A.c");
}
}
class B extends A {
int z = 1;
B() {
super();
System.out.println(z);
}
void c() {
z = 2;
System.out.println("in B.c");
}
}
public static void main(String[] args) {
new Bla().new B();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment