• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MyInterface extends SunInterface. Can I use only my Interface?

 
David Kachen
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

DBAccess - Sun interface
DataAccess - my interface extends DBAccess
Data - access data class implements DataAccess
DataFactory.getData returns DataRemote
DataRemote - interface extends Remote, DataAccess

Also, I added another method to the DataAccess:
getDataDescription returns list of field properties (name, length).

Have I broken anything? Can I use only my Interface with RMI service?
 
Carlos Morillo
Ranch Hand
Posts: 221
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Yes, you can use MyInterface and you are not breaking anything.


Since your Data class implements MyInterface which extends DBAccess
your Data class is automatically implementing all the methods of DBAccess.

HTH,

Carlos.
 
David Kachen
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Carlos..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic