题目内容:
Whichlinecontainsaconstructorinthisclassdefinition?()publicclassCounter{//(1)intcurrent,step;publicCounter(intstartValue,intstepValue){//(2)set(startValue);setStepValue(stepValue);}publicintget(){returncurrent;}//(3)publicvoidset(intvalue){current=value;}//(4)publicvoidsetStepValue(intstepValue){step=stepValue;}//(5)}A.Codemarkedwith(1)isaconstructor
B.Codemarkedwith(2)isaconstructor
C.Codemarkedwith(3)isaconstructor
D.Codemarkedwith(4)isaconstructor
E.Codemarkedwith(5)isaConstructor
参考答案: