请阅读以下程序,并写成结果。class Father{ public void hello() {System.out.println("Father says hello.");}}public class Child extends Father{ public void hello(){System.out.println("Child says hello");} public static void main(String[] a) { Child foo = new Child(); //foo.hello(); Father foo2 = (Father) foo; //foo2.hello(); Child foo3 = (Child) foo2; //foo3.hello(); System.out.println(foo==foo2); System.out.println(foo==foo3); }}