阿摩線上測驗 登入

試題詳解

試卷:96年 - 2007年4月计算机等级考试— 二级—《 JAVA 》#13698 | 科目:计算机等级考试— 二级—《 JAVA 》

試卷資訊

試卷名稱:96年 - 2007年4月计算机等级考试— 二级—《 JAVA 》#13698

年份:96年

科目:计算机等级考试— 二级—《 JAVA 》

19)给出下列代码,如何使成员变量m 被方法fun()直接访问? class Test { private int m; public static void fun() { ... } }
(A)将private int m 改为protected int m
(B)将private int m 改为 public int m
(C)将private int m 改为 static int m
(D)将private int m 改为 int m
正確答案:登入後查看