Talk:Interface (Java): Difference between revisions

Content deleted Content added
Interfaces and Abstract Classes: should proofread my post...
Line 5:
Is it possible for an Interface to implement other interface or extend an abstract class?
 
:No. An interface can extend other interfaces (similar to a class implementing interfaces), but it can't implement other interfaces. Semantically this is because interfaceinterfaces don't contain an interfaceimplementation, although syntactically, an interface extending other interfaces is the same as a class implementing interfaces, in that each allows the class/interface to inherit from and assume the types of one or more interfaces. An interface can also not extend an abstract class because although itthe class is declared as abstract, the class can contain an implemention (or partial implementation), and by definition, an interface is not allowed to contain any implementation.
 
:Hope that helps. —[[User:Doug Bell|Doug&nbsp;Bell]]&nbsp;<sup>[[User talk:Doug Bell|talk]]'''•'''[[Special:Contributions/Doug Bell|contrib]]</sup> 06:38, 10 November 2006 (UTC)