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

Popular posts from this blog

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -