|
|
Using Collections through Interfaces |
It is an advantage to use collections via interfaces instead of classes If possible, only use collection classes in instantiations, just after new This leads to programs with fewer bindings to concrete implementations of collections With this approach, it is easy to replace a collection class with another |