Thread:
 interface vs. class 
 andrewHib   23 Apr 2006, 13:17 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: andrewHib (23 Apr 2006, 13:17) Replies: 0, Views: 27533
Subject: interface vs. class
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?
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]