Table of Contents
Interface Definition
Return to Interface declaration
Definitions vs Declarations, Definitions and Declarations (computer programming): Type definition - User-defined type definition, Variable definition - Constant definition, Class definition - Object definition, Constructor definition - Destructor definition, Struct definition - Record definition, Function definition - Method definition, Lambda definition - Anonymous function definition, Enumerator definition, Pointer definition, Generic definition - Template definition, Interface definition - Protocol definition - Trait definition, Namespace definition - Package definition - Module definition - Alias definition - Import definition - Export definition, Macro definition. Programming terms. (navbar_definition)
- Snippet from Wikipedia: Interface (object-oriented programming)
In object-oriented programming, an interface or protocol type is a data type that acts as an abstraction of a class. It describes a set of method signatures, the implementations of which may be provided by multiple classes that are otherwise not necessarily related to each other. A class which provides the methods listed in an interface is said to implement the interface, or to adopt the protocol.
Interfaces are useful for encapsulation and reducing coupling. For example, in Java, the
java.lang.Comparable<T>interface specifies the methodcompareTo(). Thus, a sorting method only needs to take objects of types which implementjava.lang.Comparable<T>to sort them, without knowing about the inner nature of the class (except that two of these objects can be compared viacompareTo()).
Language Specifics
1. Bash Scripting
2. C Language
3. C++
4. C#
5. Clojure
6. COBOL
- COBOL interface definition on IBM.com/docs
7. Dart
8. Elixir
9. Fortran
- Fortran interface definition on IBM.com/docs
10. Go
11. Groovy
12. Haskell
13. IBM REXX
- REXX interface definition on IBM.com/docs
14. IBM JCL
- JCL interface definition on IBM.com/docs
15. Java
16. JavaScript
17. Kotlin
18. PHP
19. PowerShell
20. Python
21. Ruby
22. Rust
23. Scala
24. Swift
25. Microsoft T-SQL
26. TypeScript
Search
Also Listed As
Cloud Monk is Retired ( for now). Buddha with you. © 2025 and Beginningless Time - Present Moment - Three Times: The Buddhas or Fair Use. Disclaimers
SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.
