多选题 Given:
2. class Big {
3. void doStuff(int x) { }
4. }
5. class Heavy extends Big {
6. // void doStuff(byte b) { }
7. // protected void doStuff(int x) throws Exception { }
8. }
9. public class Weighty extends Heavy {
10. // void doStuff(int x) { }
11. // String doStuff(int x) {return "hi"; }
12. // public int doStuff(int x) {return 7; }
13. // private int doStuff(char c) throws Error {return 1; }
14. }
Which method(s), ifuncommented independently, compile? (Choose all that apply.)
【正确答案】 A、C、F
【答案解析】