posted 24 years ago
Hi,
Some of the concrete calsses in collection package imlement the interfaces which are also implemeted by their abstract super
classes.For example
LinkedList extends AbstractSequentialList extends AbstractList.
Both AbstractList and LinkedList implement List interface.Why both do that ?I mean if AbstractList implements List interface all functionality of the iterface will go to LinkedList ( sub-sub class of AbstractList) so why does LinkedList implemet the interface again??
Similar confusion for ArrayList and Vector both implement List interface and their super class AbstractList do the same.
[This message has been edited by Nasir Khan (edited December 15, 2000).]