阿摩線上測驗 登入

試題詳解

試卷:104年 - SCJP 51-100#99391 | 科目:OJCP(SCJP)

試卷資訊

試卷名稱:104年 - SCJP 51-100#99391

年份:104年

科目:OJCP(SCJP)

93. Given:
 10. class Nav{ 
11. public enum Direction { NORTH, SOUTH, EAST, WEST } 
12. }
 13. public class Sprite{ 
14. //insert code here 
15. } 
Which code, inserted at line 14, allows the Sprite class to compile?
(A) Direction d = NORTH;
(B) Nav.Direction d = NORTH;
(C) Direction d = Direction.NORTH;
(D) Nav.Direction d = Nav.Direction.NORTH;
正確答案:登入後查看