第25题: [单项选择]给出下列代码,如何使成员变量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 i D. 将private int m改为int m 参考答案:C 答案解析:在静态方法中不能直接访问非静态的成员,如果要在fun( )中直 接访问变量m,应将变量m用static修饰。
第34题: [单项选择]He (suggested) that she (met) with her lawyer (before) signing the (final) agreement. A. suggested B. met C. before D. final 参考答案:B 答案解析:虚拟语气用法错误,应改为(should)meet。suggest表建议时,从句中用虚拟,其构成是 should+动词原形,should可省。