Global Information Lookup Global Information

Abstract type information


In programming languages, an abstract type (also known as existential types)[1] 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[2] 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.[citation needed]

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.

  1. ^ Mitchell, John C.; Plotkin, Gordon D.; Abstract Types Have Existential Type, ACM Transactions on Programming Languages and Systems, Vol. 10, No. 3, July 1988, pp. 470–502
  2. ^ "Abstract Methods and Classes (The Java Tutorials > Learning the Java Language > Interfaces and Inheritance)". Oracle.com. Retrieved 2019-08-14.

and 17 Related for: Abstract type information

Request time (Page generated in 0.8532 seconds.)

Abstract data type

Last Update:

In computer science, an abstract data type (ADT) is a mathematical model for data types, defined by its behavior (semantics) from the point of view of...

Word Count : 4412

Abstract type

Last Update:

In programming languages, an abstract type (also known as existential types) is a type in a nominative type system that cannot be instantiated directly;...

Word Count : 836

Abstract

Last Update:

documentary series Abstract music, music that is non-representational Abstract object in philosophy Abstract structure in mathematics Abstract type in computer...

Word Count : 158

Abstract factory pattern

Last Update:

create an object of the desired abstract type and return an abstract pointer to the object. An example is an abstract factory class DocumentCreator that...

Word Count : 1832

Abstract and concrete

Last Update:

In metaphysics, the distinction between abstract and concrete refers to a divide between two types of entities. Many philosophers hold that this difference...

Word Count : 1125

Haxe

Last Update:

(called enum in Haxe), and abstract types. Parametric polymorphism is possible with classes, algebraic types and function types, giving the language support...

Word Count : 2358

Abstraction

Last Update:

characteristics of that particular ball. In a type–token distinction, a type (e.g., a 'ball') is more abstract than its tokens (e.g., 'that leather soccer...

Word Count : 4635

Generalized algebraic data type

Last Update:

higher-order abstract syntax in a type safe fashion. Here is an embedding of the simply typed lambda calculus with an arbitrary collection of base types, tuples...

Word Count : 1322

Abstract expressionism

Last Update:

Abstract expressionism in the United States emerged as a distinct art movement in the immediate aftermath of World War II and gained mainstream acceptance...

Word Count : 8703

Type system

Last Update:

types is a value of type T. Given a value "t" of type "T", we know that "t.f(t.a)" is well-typed, regardless of what the abstract type X is. This gives flexibility...

Word Count : 7255

Abstract syntax tree

Last Update:

An abstract syntax tree (AST) is a data structure used in computer science to represent the structure of a program or code snippet. It is a tree representation...

Word Count : 1214

Abstract graphical data type

Last Update:

An abstract graphical data type (AGDT) is an extension of an abstract data type for computer graphics. AGDTs provide the advantages of the ADTs with facilities...

Word Count : 369

Abstract algebra

Last Update:

In mathematics, more specifically algebra, abstract algebra or modern algebra is the study of algebraic structures, which are sets with specific operations...

Word Count : 4185

Abstract syntax

Last Update:

computer science, the abstract syntax of data is its structure described as a data type (possibly, but not necessarily, an abstract data type), independent of...

Word Count : 467

Data type

Last Update:

the ADT data BTree a = Nil | Node (BTree a) a (BTree a) An abstract data type is a data type that does not specify the concrete representation of the data...

Word Count : 3422

Nominal type system

Last Update:

nominal typing does not allow new super-types to be created without modification of the existing subtypes. Structural type system Abstract type Type system...

Word Count : 437

Abstract art

Last Update:

Abstract art uses visual language of shape, form, color and line to create a composition which may exist with a degree of independence from visual references...

Word Count : 4113

PDF Search Engine © AllGlobal.net