class PersonChooseByYoungAge implements PersonChoose { Date myDate; public PersonChooseByYoungAge(Date d) { myDate=d; } public boolean choose(Person p) { return !p.older(d); } }