• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX:Expanding the provided DB interface

 
Trym Moeller
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
When implementing the DB interface I open a file in the constructor of the implementing class. To close this file I either need add a method to the interface (void exit() or only add the method on the implementing classs and then cast the interface to the implementing class to call it.
Do you think it's alright to add mthods to the interface?
Best regards Trym
 
Terry Martinson
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding is we can't add methods to the interface. I also have a couple situations where I do some casting as you mention above.
TJ
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic