this.name = name; this.size = size;
if (o instanceof Fruit) { Fruit that = (Fruit)o; return this.name == that.name && this.size == that.size; } else return false;
return this.name + "(" + size + ")";