Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: DBAccess Interface

 
Michael Green
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you allowed to modify this interface? I would like to add an extends to the interface to include another java standard interface.

If not, could I create a subinterface to this one and to accomplish the extends. I could then make the Data.java class implement my extended interface, which still could satisfy the requirement of "...must implement the DBAccess interface"

Thanks
Michael
 
Omar Kalaldeh
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Michael,

You should do your second option, extend DB interfcae and let your data class implement it.


If not, could I create a subinterface to this one and to accomplish the extends. I could then make the Data.java class implement my extended interface, which still could satisfy the requirement of "...must implement the DBAccess interface"


you are not suppose to modfiy the supplied DB interface.
[ December 18, 2004: Message edited by: Omar Kalaldeh ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic