HELP!! People who passed or submitted - DB interface
Bill Robertson
Ranch Hand
Joined: Mar 21, 2003
Posts: 234
posted
0
This topic has been discussed before but I could not find the messages. I have a data class that has to implement an interface DB. Can I create another interface that extends DB and have my data class implement the new interface instead of DB. Will this break the requirement that data has to implement DB. Because after all it is implementing DB just not directly.
George Marinkovich
Ranch Hand
Joined: Apr 15, 2003
Posts: 619
posted
0
If your Data class implements an interface that extends DB, then by definition, your Data class IS implementing DB. - George
Regards, George
SCJP, SCJD, SCWCD, SCBCD
Philippe Maquet
Bartender
Joined: Jun 02, 2003
Posts: 1872
posted
0
Hi Bill, In this thread, Jim suggested a very elegant answer to your question (Jim Yingst - posted December 23, 2003 11:41 PM). Regards, Phil.