请看下面的程序段class Test{private int m;public static void fun(){//some code…}}方法fun()如何来访问变量m?( )(选择一项)
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正确答案C
请看下面的程序段class Test{private int m;public static void fun(){//some code…}}方法fun()如何来访问变量m?( )(选择一项)
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正确答案C