glossary:interface
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
glossary:interface [2020-12-10 08:40] – old revision restored (2013-08-11 10:51) 95.216.172.175 | glossary:interface [2021-09-02 13:05] – old revision restored (2021-05-11 17:16) 65.21.179.175 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Interface ====== | + | ====== Interface |
- | + | ===== Alternative Terms ===== | |
- | ===== Meaning 1: Interface as a Concept ===== | + | |
- | + | ||
- | ==== Alternative Terms ==== | + | |
/*i.e. alternative names meaning the same thing*/ | /*i.e. alternative names meaning the same thing*/ | ||
- | ==== Definition ==== | + | ===== Definition |
An **interface** defines the interaction between certain [[modules]]. | An **interface** defines the interaction between certain [[modules]]. | ||
- | ==== Description ==== | + | ===== Description |
Interface is a very general concept which refers to the interaction points of arbitrary modules: | Interface is a very general concept which refers to the interaction points of arbitrary modules: | ||
* The interface of a [[class]] is defined by its public [[methods]]. | * The interface of a [[class]] is defined by its public [[methods]]. | ||
Line 18: | Line 15: | ||
* A [[graphical user interface]] is defined by buttons, menus, text boxes, and other controls. | * A [[graphical user interface]] is defined by buttons, menus, text boxes, and other controls. | ||
- | The interface defines how a module shall be used. There may be ways circumventing the interface and accessing internal parts of a module directly. This should be avoided ([[principels: | + | The interface defines how a module shall be used. There may be ways circumventing the interface and accessing internal parts of a module directly. This should be avoided ([[principels: |
A module can be described as having a [[provided interface]] and a [[required interface]]. | A module can be described as having a [[provided interface]] and a [[required interface]]. | ||
- | ==== Examples ==== | + | ===== Examples |
- | ==== Alternative Definitions ==== | + | ===== Alternative Definitions |
/*i.e. slightly different definitions for basically the same thing*/ | /*i.e. slightly different definitions for basically the same thing*/ | ||
- | ==== See Also ==== | + | ===== See Also ===== |
* [[Module]] | * [[Module]] | ||
* [[Application Programming Interface]] (API) | * [[Application Programming Interface]] (API) | ||
Line 34: | Line 31: | ||
* [[Service Provider Interface]] (SPI) | * [[Service Provider Interface]] (SPI) | ||
- | ==== Further Reading ==== | + | ===== Further Reading |
* [[wp> | * [[wp> | ||
---- | ---- | ||
- | ===== Meaning 2: Interface | + | ====== Interface |
- | + | ===== Alternative Terms ===== | |
- | ==== Alternative Terms ==== | + | |
/*i.e. alternative names meaning the same thing*/ | /*i.e. alternative names meaning the same thing*/ | ||
- | ==== Definition ==== | + | ===== Definition |
An **'' | An **'' | ||
- | ==== Description ==== | + | ===== Description ===== |
- | An '' | + | |
- | There are '' | ||
Note that in this wiki whenever the language construct is meant (and not the concept) '' | Note that in this wiki whenever the language construct is meant (and not the concept) '' | ||
- | ==== Examples ==== | + | ===== Examples |
- | [[http:// | + | |
- | <code java> | + | ===== Alternative Definitions |
- | public interface Collection< | + | |
- | { | + | |
- | boolean add(E e); | + | |
- | boolean addAll(Collection<? | + | |
- | void clear() | + | |
- | boolean contains(Object o) | + | |
- | ... | + | |
- | } | + | |
- | </ | + | |
- | ==== Alternative Definitions ==== | + | |
/*i.e. slightly different definitions for basically the same thing*/ | /*i.e. slightly different definitions for basically the same thing*/ | ||
- | ==== See Also ==== | + | ===== See Also ===== |
* [[Class]] | * [[Class]] | ||
* [[Abstract Class]] | * [[Abstract Class]] | ||
* [[Mixin]] | * [[Mixin]] | ||
- | ==== Further Reading ==== | + | ===== Further Reading |
---- | ---- | ||
- | ===== Other Meanings | + | ====== Other Uses ====== |
/*i.e. the same term referring to something different; put short mentions here or better add more detailed descriptions as additional sections */ | /*i.e. the same term referring to something different; put short mentions here or better add more detailed descriptions as additional sections */ | ||
- | |||
- | * In [[Object Pascal]] a [[unit]], i.e. a pas-file, typically contains an interface and an implementation section. The interface section lists the declarations which are visible outside the unit. | ||
- | |||
- | ---- | ||
- | ===== Discussion ===== | ||
- | |||
- | Discuss this wiki article and the term on the corresponding [[talk: |
glossary/interface.txt · Last modified: 2021-10-20 20:14 by christian