Should an interface that is inherited from base-class be implemented explicitly in subclass?
- 阅读更多 关于 Should an interface that is inherited from base-class be implemented explicitly in subclass?
问题 My question is, if an interface that is implemented implicitly by extending a class that already implements it, should be explicitly implemented by the class, if the class wants to advertise the fact, that it fulfills the contract of that interface. For instance, if you want to write a class, that fulfills the contract of the interface java.util.List . You implement this, extending the class java.util.AbstractList , that already implements the interface List . Do you explicitly declare, that