在如下所示的类Test中,共有______个构造方法
public class Test {
private int x;
public Test() {
x = 35;
}
public void Test(double f) {
...
this.x = (int)f;
}
public Test(double f) {
this.x = (int)f;
}
public Test(String s) {
}
}1
2
3
4
public void Test(double f)
不是构造函数,它有返回类型
不是构造函数,它有返回类型