|
|
|
| So, we've learned about abstract classes and interfaces, right? In reality, we'll need some examples and some practice to see how they are typically used, before we can be comfortable using them in our own code. There are many good examples of the use of abstract classes and interfaces in the Java class libraries. One particularly useful example is how they are used to implement the Java Collections Framework. A collection is a "container" for a group of elements or items. It provides operations to allow manipulation of those elements. The Java Collections Framework is represented by the following set of classes and interfaces (the tree structure represents the inheritance hierarchy): There's clearly lots to talk about!Package java.util:Interfaces:
|
|
This page was last modified on 02 October, 2007 |