class A {}
class B extends A {}
class C extends B {
static void m(A x, A y) {System.out.print("AA");}
static void m(A x, B y) {System.out.print("AB");}
static void m(B x, A y) {System.out.print("BA");}
static void m(B x, B y) {System.out.print("BB");}
public static void main(
String[] args) {
m(null,null);
}
}
I know that m(null,null) calls m(B x,B,y) and my question is why m(B x, B y) is more specific than
m(A x, A y)???