File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data class Interface help

 
Andre Mermegas
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, id like to make a common Interface both
Data and RemoteData class can implement which
exposes all the public methods.As it stands I'm
having a problem with them both using one inteface
which defines all the public methods of Data.
Here is the interface for Data class

here is the interface for RemoteData

What would be the way to make one common interface?
I thought perhaps that removing all the throws from
each method would work, but it causes compile errors.
I may be kinda confused..
reguards,
Andre
[This message has been edited by Andre Mermegas (edited December 13, 2001).]
 
Andre Mermegas
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guys, found what i was looking for in search!!
=) this place is awesome. http://www.javaranch.com/ubb/Forum25/HTML/000832.html

------------------
Andre Mermegas
Sun Certifed Java Programmer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic