java - Why some Collections extends Abstract also Implements interface? -


i curious why collection classes has extended abstract class , @ same time implementing interfaces there corresponding collection interface list,set etc.?. why not extending abstract class. can understand implementing other interface adding functionality cloneble, serializable, etc. extending abstract class , implementing interface abstract class has implemented . think there design principle missing. please can elaborate design reason?

the collection interfaces exist people can consume collections without knowing anything type of collection – if doesn't extend of abstract classes.
example, of concurrent collections not extend abstract base classes.

the abstract classes exist provide common base functionality implementations.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -