Interfaces in collections framework

Viewed 1240

My question is

Interface Set has method add(E e) and it extends interface Collection. Interface Collection also has method add(E e) So why do we need the same method in interface Set , since it already extends interface Collection. What is the purpose ? I am stuck with that

3 Answers
Related