Typing and polymorphism
Typing in programming language

Add to my library

H3320 V1 Article

Typing and polymorphism


Typing in programming language

Authors : Emmanuel CHAILLOUX, Romain DEMANGEON, Michel MAUNY

Publication date: May 10, 2018 | Lire en français

Add to my library Add to my library

Logo Techniques de l'Ingenieur You do not have access to this resource.
Request your free trial access! Free trial

Already subscribed?

4. Typing and polymorphism

Typing also brings flexibility by allowing code reuse and specialization. The notion of polymorphism makes it possible to write the code of a component (procedure, function, method...) independently of the type of its arguments. This makes it possible to define algorithms that can operate on data of different types. The term polymorphism, which designates the character of that which can take various forms, thus indicates that the nature (type) of the arguments or result can vary when a given component is called, while preserving the security of execution provided by typing.

4.1 Classification

This flexibility encompasses different situations of reuse and specialization. Some codes can be completely factorized, as in the case of counting the elements of a list,...

You do not have access to this resource.
Logo Techniques de l'Ingenieur

Exclusive to subscribers. 97% yet to be discovered!

You do not have access to this resource. Click here to request your free trial access!

Already subscribed?


Ongoing reading
Typing and polymorphism

Article included in this offer

"Software technologies and System architectures"

( 230 articles )

Complete knowledge base

Updated and enriched with articles validated by our scientific committees

Services

A set of exclusive tools to complement the resources

View offer details

Dans les ressources documentaires

Ada

L'objectif de cet article est de présenter sommairement le langage Ada dans son état actuel (2017). Après...

Langage UML : développement de logiciel et modélisation visuelle

Le langage UML (pour Unified Modeling Language) est un langage graphique de modélisation des systèmes log...

Plate-forme .NET

Le .NET Framework, qui permet la création et l’exécution d’applications modernes conçues autour des stand...

Tous les livres blancs
Toutes les actualités
Contact us