Jump to content

Interface inheritance

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Folajimi (talk | contribs) at 16:33, 26 January 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Interface inheritance is a term used in the realm of object-oriented programming to describe a technique which allows for more dynamic and flexible programming. It is the declaration wherein one class will respond to the same set of messages as another. In other words, the methods and fields of the inherited (or super) interface are simply combined into the methods and fields of the inheriting (or sub) interface

Interface inheritance is considered the most important aspect of inheritance. Unfortunately, it is often conflated with the notion of implementation inheritance in the object-oriented programming paradigm. This conflation may be attributed to a subtle, but notable difference; the latter, is a rather inflexible variant of the former as it is unamiable to encapsulation.

See also