Java认证
2014年Java认证SCJP模拟习题:SCJPMockExam(1)
日期:2013-10-31 14:06
ins a constructor in this class definition?

public class Counter { // (1)
int current, step;
public Counter(int startValue, int stepValue) { // (2)
set(startValue);
setStepValue(stepValue);
}
public int get() { return current; } // (3)
public void set(int value) { current = value; } // (4)
public void setStepValue(int stepValue) { step = stepValue; } // (5)
}

1) Code marked with (1) is a constructor
2) Code marked with (2) is a constructor
3) Code marked with (3) is a construct

2/3 下一页 上一页 首页 尾页

Java认证


返回 刷新 WAP首页 网页版 登录
05/13 18:00