Jump to content

Talk:Interface (Java)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 203.59.173.238 (talk) at 13:43, 27 November 2006 (Can someone who understands the concepts please review this?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

it is possible to interface implements interface

Interfaces and Abstract Classes

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 interfaces don't contain an implementation, 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 not extend an abstract class because although the 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. —Doug Bell talkcontrib 06:38, 10 November 2006 (UTC)[reply]

Can someone who understands the concepts please review this?

This article is barely readable. Here is a quote from it: "Interfaces are used to collect like similarities which classes of various types share, but do not necessarily constitute a class relationship."

If I understood it better, I would edit this article, but alas I do not - that is why I am here.