这段代码中有构造函数吗?这段代码的哪一部分是构造函数?
class Bicycle {
int cadance = 0;
int speed = 0;
int gear = 0;
void changeCadance(int changeCadence) {
cadance = changeCadence;
}
void changeGear(int changeGear) {
gear = changeGear;
}
void changeSpeed(int changeSpeed) {
speed = changeSpeed;
}
void printState() {
System.out.print("Cadance = "+cadance);
}
}