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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -