Hi,
The @Override is used to annotate a method that overrides the method from the
super class. In case of implementing methods from an interface, please don't
use it. The Eclipse compiler will catch such problems and report as errors.
For example,
public interface A {
String m1();
}
public class AImpl implements A {
// DO NOT add @Override here
public String m1() {
return "A";
}
}
public class BImpl extends AImpl {
@Override // This is correct
public String m1() {
return "B";
}
}
Thanks,
Raymond
________________________________________________________________
Raymond Feng
[email protected]
Apache Tuscany PMC member and committer: tuscany.apache.org
Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
Personal Web Site: www.enjoyjava.com
________________________________________________________________