File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Data implementation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Data implementation" Watch "Data implementation" New topic
Author

Data implementation

Vinicius Florentino
Greenhorn

Joined: Feb 26, 2008
Posts: 16
Is it possible Data implements other interface like Closeable or other created by me? Data is implementing only DB now.
Vinicius Florentino
Greenhorn

Joined: Feb 26, 2008
Posts: 16
And if Data can implements a subinterface of DB. example:

public interface X extends DB {
...new method
}

public class Data implements X...
Gilles Marceau
Ranch Hand

Joined: Feb 17, 2007
Posts: 78
Hello,

in my opinion, the answers to your two questions are both yes.
You have to comply with the assignment instructions, and regarding the DB
interface and the Data class, it states that :
"Data.java must implement the DB interface".

There is no restriction on other interfaces that Data must or must not implement. And stritcly speaking, implementing a subclass of DB means
implementing DB.

brgds,
Gilles


SCJP 1.5<br />SCJD 1.6<br />SCBCD in progress...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Data implementation
 
Similar Threads
How to cleanly seperate Model/View/Controller ?
Resultset processes 1 record
posting data in key/value pair when doing http Post in java
Data Grid with Struts/JSP
Two Web applications deployed under two different Servers