After adding packages, the question is much more complicated. I tried this and I changed your main program to
public class C1 extends b.B1 implements I1 {
public static void main(String[] args) {
a.A1 a = new a.C1();
System.out.println(a.m1());
a.A1 b = new b.B1();
System.out.println(b.m1());
}
}
(I actually used different package names to avoid conflicts with variable names. Thus, my code is slightly different from the above.)
, "b" "a". , B1, m1 A1. , b.m1(), b A1, , , A1, . , C1?
C1 m1 B1. m1 B1 A1, m1 C1, B1, A1, , 8.4.8.1:
mA , C, C mC, mA C.
C - C1 . mC - m1, B1. "C mC" , C1 m1, . , " ". , B1 , A1. B1 m1, , m1, m1 A1. , . , , mA C ( B1), , , 8.4.8.1 , , m1 C1 A1.