【单选题】下列代码在编译时会发生错误,下面哪种修改可以更正错误() class Test{ private int m; public static void fun(){ System.out.println(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
发布时间:2024-04-22 18:02:55