Saturday, April 23, 2011

Inheritance among interfaces in java

Note the exception of extends with Interfaces
It is possible to use derivation in the definition of interfaces. And in Java it is possible for an interface to extend more than one base interface:
interface D extends E, F
{
}
 
In this case, the derived interface D comprises all the methods inherited from E and F as well as any new methods declared in the body of D.

No comments:

Post a Comment

Chitika