多项选择题
A.One object is created
B.Two objects are created
C.Three objects are created
D.One reference variable is created
E.Two reference variables are created
F.Three reference variables are created.
单项选择题 Which line contains 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) }
单项选择题 Aninstancemember()
单项选择题 Anobjectis()