Skip to content

Instantly share code, notes, and snippets.

@madbence
Created June 11, 2013 10:00
Show Gist options
  • Save madbence/5755779 to your computer and use it in GitHub Desktop.
Save madbence/5755779 to your computer and use it in GitHub Desktop.
public class App {
public interface A {
B foo();
}
public static class B {
B foo() { return null; }
}
public static class C implements A {
private int x;
public void baz(B b) {}
protected void baz(D d) {}
private static void garply() {}
public B foo() { return null; }
}
public static class D extends B {
public static double y;
public void qux(A a) { ((C)a).baz(null); }
}
public static class E {
protected C z;
//itt még van valami Map<String, F>-es bohóckodás
public static void grault(E e) {}
}
public class F extends D {
public void bar(D d) {}
public void corge() {}
}
public static void main(String[] args) {
D d = new D();
d.qux(new C());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment