Java中构造函数重载是怎样写的?
[code="java"]
public class MicroBlog {
public static String HAS="1";
public static String HAS_NO="0";
private String pushId;
private String memberId;
private String pushName;
private String content;
private String photo;
private String isAuto;
private String isFine;
private String isSource;
private String sourcePushId;
private String createTime;
private String deleteTime;
.......//省略 setter,getter
public MicroBlog(){
}
public MicroBlog(String pushId, String memberId, String pushName,String content) {
this.MicroBlog(pushId, memberId, pushName, content, pushId, HAS);
}
public MicroBlog(String pushId, String memberId, String pushName,
String content, String sourcePushId,String isSource) {
this.pushId = pushId;
this.memberId = memberId;
this.pushName = pushName;
this.content = content;
this.isSource = isSource;
this.sourcePushId = sourcePushId;
}
public MicroBlog(String memberId) {
this.memberId = memberId;
}
}
[/code]
报错了,为什么