Metraipolis › archive › dc_ada465738cb3

Abstract type — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Abstract_type
License (as archived)
CC-BY-SA-4.0
Archived
2026-11-07T08:36:27.257Z
SHA-256 of the archived text
df075305532d612f2787872a40db587fe125619e3c9118356f719ab9a5be78c6
Stable URL of this page
https://metraipolis.com/documento/dc_ada465738cb3

How to cite

Abstract type — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Abstract_type (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_ada465738cb3 (Metraipolis archive dc_ada465738cb3, sha256 df075305532d612f2787872a40db587fe125619e3c9118356f719ab9a5be78c6)
BibTeX
@misc{dcada465738cb3,
  title = {Abstract type — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Abstract_type},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_ada465738cb3; sha256 df075305532d612f2787872a40db587fe125619e3c9118356f719ab9a5be78c6},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Abstract_type. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In programming languages, an abstract type (also known as existential types) is a type in a nominative type system that cannot be instantiated directly; by contrast, a concrete type can be instantiated directly. Instantiation of an abstract type can occur only indirectly, via a concrete subtype. An abstract type may provide no implementation, or an incomplete implementation. In some languages, abstract types with no implementation (rather than an incomplete implementation) are known as protocols, interfaces, signatures, or class types. In class-based object-oriented programming, abstract types are implemented as abstract classes (also known as abstract base classes), and concrete types as concrete classes. In generic programming, the analogous notion is a concept, which similarly specifies syntax and semantics, but does not require a subtype relationship: two unrelated types may satisfy the same concept. Often, abstract types will have one or more implementations provided separately, for example, in the form of concrete subtypes that can be instantiated. In object-oriented programming, an abstract class may include abstract methods or abstract properties that are shared by its subclasses. Other names for language features that are (or may be) used to implement abstract types include traits, mixins, flavors, roles, or type classes. Abstract types may also include any number of non-abstract methods and properties, such as when implementing the Template Method Pattern which uses a mixture of invariant methods with fixed implementations and hook methods which can be overridden in concrete subclasses to provide custonised logic.

Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico).
Fonte: Wikipedia in inglese, voce «Abstract type» — https://en.wikipedia.org/wiki/Abstract_type
Wikidata Q1781552: «type in a nominative type system that cannot be instantiated directly» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q1781552
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Abstract_type?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1383227635, consultata il 2026-11-07T08:32:12.426Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: da2bae8d327cbb08bcd03c6591e8427264407e34195c052f5dd640037a22cc7b