多选题 Given:
4. class Electricity {int getCharge() {return 24; } }
5. public class Voltage extends Electricity {
6. enum volts {twelve, twentyfour, oneten};
7. public static void main(String[] args) {
8. volts v = velts.twentyfour;
9. switch (v) {
10. case twelve:
11. System.out.print("12 ");
12. default:
13. System.out.print (getCharge() + " ");
14. case oneten:
15. System.out.print("110 ");
16. } } }
What is the result? (Choose all that apply.)
【正确答案】 E
【答案解析】