interface B1{}; interface B2{}; class A implements B1,B2{ } B1 b = new A(); B2 b2 = (B2)b;
是合法的。这就是接口的多态。