Translations:Interface type/1/en

From Resonite Wiki
Revision as of 02:55, 27 April 2025 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

An interface type is a reference type that does not necessarily refer to a specific type that can be instantiated, but rather an abstract contract that derived types must follow. Any type that "implements" the interface must provide an implementation of whatever is defined within the interface or fall back to a default implementation on the interface itself. They are used to describe a specific common behavior that classes of a similar kind can implement to avoid code duplication. Types may implement multiple interfaces at once.