Must read: Java interfaces

http://www.javaworld.com/article/3171300/java-language/java-101-interfaces-in-java.html

When client code interacts with names, it will invoke those methods that are declared by List, and which are implemented by ArrayList.

Leave a Reply

Your email address will not be published. Required fields are marked *