java - Why some interface methods are overriden by another interface? -
is documentation purposes (e.g. deque interface override methods of queue interface, giving them description), or there other reasons ?
you can use enforce more specific method signatures , return types. consider:
public interface foo { object result(); } public interface bar extends foo { @override string result(); // bar redefines result() return string }
Comments
Post a Comment