多选题
Given:
2. class Grandfather {
3. static String name = "gf ";
4. String doStuff() {return "grandf "; }
5. }
6. class Father extends Grandfather {
7. static String name = "fa ";
8. String doStuff() {return "father "; }
9. }
10. public class Child extends Father {
11. static String name = "ch ";
12. String doStuff() {return "child "; }
13. public static void main(String[] args) {
14. Father f = new Father();
15. System.out.print(((Grandfather)f).name + ((Grandfather)f) .doStuff());
16. Child c = new Child();
17. System. out.println(((Grandfather) c) .name + ((Grandfather)c) .doStuff() + ((Father)c) .doStuff());
18. } }
What is the result? (Choose all that apply.)