Does the constructor for the "Tenant" class have to look like this?
private String name;
private MyDate rentedFrom;
public Tenant(String name)
{
this.name = name;
}
or this?
private String name;
private MyDate rentedFrom;
public Tenant(String name)
{
this.name = name;
this.rentedFrom = null;
}

As long as your variables are not
finalyou don't need to initialize them withnull. Though it is bad practice not doing so, this is why I would recommend doing so.Means this code is the "better" one: