单选题:For the code below:
For the code below:
```Java
class Test {
private int m;
public static void fun( ) {
// some code…
}
}
```
How to make the member variable `m` be visited by the function `fun()`? @[C](2)
A. Change `private int m` to `protected int m`
B. Change `private int m` to `public int m`
C. Change `private int m` to `static int m`
D. Change `private int m` to `int m`
A.Change `private int m` to `protected int m`
B.Change `private int m` to `public int m`
C.Change `private int m` to `static int m`
D.Change `private int m` to `int m`
答案:C
```Java
class Test {
private int m;
public static void fun( ) {
// some code…
}
}
```
How to make the member variable `m` be visited by the function `fun()`? @[C](2)
A. Change `private int m` to `protected int m`
B. Change `private int m` to `public int m`
C. Change `private int m` to `static int m`
D. Change `private int m` to `int m`
A.Change `private int m` to `protected int m`
B.Change `private int m` to `public int m`
C.Change `private int m` to `static int m`
D.Change `private int m` to `int m`
答案:C