我有如下所示的课程;
public class Film {
public String filmName;
public String filmImage;
public String imdbRating;
public String description;
public Film(){
super();
}
public void Film(String filmName,String filmImage,String imdbRating){
this.filmName=filmName;
this.filmImage=filmImage;
this.imdbRating=imdbRating;
}
public Film(String filmName,String filmImage,String imdbRating,String description){
this.description=description;
//I want call the other one, because I don't want to repeat
this.Film(filmName,filmImage,imdbRating);
}
}
请注意构造函数Film(String,String,String,String)的第二个定义。为什么我不能在第二个构造函数中调用Film(String,String,String) ?
有没有办法做到这一点?