class YearDate extends AmazonDate {

    @Override
    public boolean equals(Object o) {
        if (!super.equals(o)) return false;
        YearDate yearDate = (YearDate) o;
        return year == yearDate.year;
    }

    public  YearDate(Slot slot, int year);

}