-->
当前位置:首页 > 题库

单选题:For the code below:

Luz5年前 (2021-05-10)题库1653
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