haitao · 2007-03-12 08:38:14 · 阅读: 538 c++支持缺省参数 public A(int x=0) { // xxx } 就行了,不用再写一个 public A() : A(0) { } 不知道java是否支持