用this的构造函数有点问题,求助,谢谢
public class AnyThting {
public AnyThting() {
// TODO Auto-generated constructor stub
this("123765765");
System.out.println("无参构造方法");
}
public AnyThting(String name) {
// TODO Auto-generated constructor stub
System.out.println("有参构造方法");
}
public static void main(String[] args) {
// TODO Auto-generated method stub
AnyThting a = new AnyThting();
System.out.println(a);
}
}