glossary:interface
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
glossary:interface [2013-05-27 13:53] – created 2001:8d8:1fe:300:dc7d:911d:da97:87aa | 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 15: | Line 18: | ||
* 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 31: | Line 34: | ||
* [[Service Provider Interface]] (SPI) | * [[Service Provider Interface]] (SPI) | ||
- | ===== Further Reading | + | ==== Further Reading ==== |
* [[wp> | * [[wp> | ||
---- | ---- | ||
- | ====== Interface | + | ===== Meaning 2: 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:// | |
- | ===== Alternative Definitions | + | <code java> |
+ | 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 Uses ====== | + | ===== Other Meanings |
/*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. |
glossary/interface.txt · Last modified: 2021-10-20 20:14 by christian