class Bird { <br /> static void talk() { System.out.print("chirp "); } <br /> } <br /> class Parrot extends Bird { <br /> static void talk() { System.out.print("hello "); } <br /> public static void main(String [] args) { <br /> Bird [] birds = {new Bird(), new Parrot()}; <br /> for( Bird b : birds) <br /> b.talk(); <br /> } <br /> } <br /> 结果为:() 
A、chirp chirp
B、chirp hello
C、hello hello
D、编译失败