Hi Tim,
Welcome to JavaRanch and this forum.
You might like to take a look at
How to ask questions on JavaRanch, particularly the
Patience is a virtue page.
Originally posted by Tim Fernandez
i should have something like:
1> DataMain (given) defines all the public methods.
2> RemoteDataInterface it extends DataMain and Remote.
3> LocalDataImpl extends Data and implements DataMain
4> RemoteDataImpl extends Data and implements RemoteDataInterface
Is this correct?
It sounds like you have a good basic concept, however it will need some tweaking. For example, the methods of DataMain do not throw RemoteException, so RemoteDataInterface will not be able to extend both DataMain and Remote.
Originally posted by Tim Fernandez
After reading the Java Coding convention and the 'How to write Doc Comments for the Javadoc Tool', i can see that its hasnt complied at all to some of the conventions. Should i still copy this as is since this is provided by SUn? For the implementing classes (Data and LocalDataImpl) can i just copy the documentation used in initerface DBMain?
My personal preference would be to fix the JavaDoc since:
From the instructions:
javadoc style comments must be used for each element of the public interface of each class
Plus fixing the comments in the interface means that your Data class can just inherit the documentation
.
Regards, Andrew