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 -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -