Interface (computing): Difference between revisions

Content deleted Content added
Danakil (talk | contribs)
Danakil (talk | contribs)
Line 13:
Interfaces were historically derived from the [[header file]]s 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 (programming)|preprocessor]] feature).
 
The [[Java programming language]] takes a different approach to the concept of the interface normally existing in other [[object-oriented programming]] languages (ie., that the interface specified is the interface to the class), in that an interface specifies a set of methods which implement some specific functionality, common to a set of classes. See [[protocol (object-oriented programming)]].
 
Certain programming languages have different methodologies for allowing the construction of interfaces. In general, any programming language can implement an interface, but the following [[programming language]]s provide specific interface ''constructs'' in the programming language of some kind: