|
|
|
| So, why do we think that using interfaces is better, in this case? Using interfaces in Java is essential for adding certain functionality. For example, we can now add other capabilities simultaneously using additional interfaces:
Note the keyword implements in place of extends, and the fact that you can now specify a comma-separated list of interface names. This is valid syntax, and compiles without error.
|
|
This page was last modified on 02 October, 2007 |