Jump to content

Interface (computing)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TakuyaMurata (talk | contribs) at 23:12, 26 April 2004 (separated from interface; need significant work). 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)

In computer science, an interface is a language construct used for both abstraction and encapsulation through which constants, data types, procedures, and method signatures are defined, but the details of implementation are intentionally left undefined.

Examples of programming languages that provide interfaces:

The concept of interface is the cornerstone of modular programming, a forerunner and ingredient of object-oriented programming. Interfaces were historically derived from the header files of the C programming language by restricting their syntactic context and contents, and making them a part of the language semantics (as opposed to a mere preprocessor feature).