Let's say I have an interface:
package org.my.dicom.CEchoSCU;
public interface CEchoSCU {
// stuff here...
}
I will also have an implementation of the interface:
public class SimpleCEchoSCU implements CEchoSCU {
// stuff here...
}
My question is, which package should house the implementation? I have seen other developers place the implementation is in the same package as the interface (org.my.dicom
, in this case), and also cases where a separate package is used (typically something like org.my.dicom.impl
). Other than personal preference, is there any reason to prefer one over the other?