多选题 Given:
1. public class Fellowship {
2. public static void main(String[] args) {
3. // insert code here
4. }
5. }
6. class Numinor {
7. enum Members {
8. HOBBITS(48), ELVES(74), DWARVES(50);
9. int height;
10. Members(int h) {height = h; }
11. int getHeight() {return height; }
12. }
13. }
And these four lines of code to be inserted, independently at line 3:
Ⅰ. int h0 = Numinor.Members.HOBBITS.getHeight();
Ⅱ. int h1 = Numinor.Members.getHeight();
Ⅲ. int h2 = Members.HOBBITS.getHeight();
Ⅳ. int h3 = Members.height;
Which are true? (Choose all that apply.)
【正确答案】 A
【答案解析】