多选题 Given:
1. public class LaSelva extends Beach {
2. LaSelva() {s = "LaSelva"; }
3. public static void main(String[] args) {new LaSelva().go(); }
4. void go() {
5. Beach[] ba= {newBeach(), newLaSelva(), (Beach) newLaSelva() };
6. for(Beach b: ba) System.out.print(b.getBeach().s + " ");
7. }
8. LaSelva getBeach() {return this; }
9. }
10. class Beach {
11. String s;
12. Beach() {s = "Beach"; }
13. Beach getBeach() {return this; }
14. }
What is the result?
【正确答案】 B
【答案解析】