“租户”类的构造函数必须看起来像这样吗?
private String name;
private MyDate rentedFrom;
public Tenant(String name)
{
this.name = name;
}
或这个?
private String name;
private MyDate rentedFrom;
public Tenant(String name)
{
this.name = name;
this.rentedFrom = null;
}