Today i found in my codes what appears to be a child class implementing an interface that the parent class is already inheriting.
May i know if this has any adverse side effects or intentions, as i am working on to remove it from the child class as i believe this could have been an accidental mistake, or perhaps am i missing something?
In the child class:
public class ProductServiceBean
extends GenericSessionBean
implements javax.ejb.SessionBean
In the parent class:
// Compiled from GenericSessionBean.java (version 1.2 : 46.0, super bit)
public abstract class weblogic.ejb.GenericSessionBean
extends weblogic.ejb.GenericEnterpriseBean
implements javax.ejb.SessionBean
Note that in both child and parent, the classes do implement the javax.ejb.SessionBean.
Removing
implements javax.ejb.SessionBeanfrom only theProductServiceBeanclass will have no effect, since the fact that the class implements the interface is inherited from the parentGenericSessionBeanclass.There is also no harm in including it in the child class, it’s just a redundant declaration.