posted 14 years ago
True, but that is a good thing. That is the benefit of using interfaces. The interface should define the API, the concrete classes implement methods defined by the common interface, that way a reference of the interface type can hold a reference to any of the concrete classes and they will all behave as the API says it should. By using List<ClassType> ref to declare a reference it can hold an ArrayList, a Vector, a LinkedList, OR any of your own classes that extend one of the list types.
------------------------
Bob
SCJP - 86% - June 11, 2009