Hi,
The interface ItemDAO has to methods that retun an object of the
Bid-class. What happens if some sort of persistence mechanism needs the
class to implement an interface(Bid implements Persistable, for
example), then you can´t return the Bid class. Wouldn´t it be better
here to program against an interface Bid? |