![](/assets/images/picto-drapeau-france-3a76576a5d60a512053b4612ab58dae5.png)
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,...
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? Log in!
![](/assets/images/logo-eti-286623ed91fa802ce039246e516e5852.png)
The Ultimate Scientific and Technical Reference
This article is included in
Software technologies and System architectures
This offer includes:
Knowledge Base
Updated and enriched with articles validated by our scientific committees
Services
A set of exclusive tools to complement the resources
Practical Path
Operational and didactic, to guarantee the acquisition of transversal skills
Doc & Quiz
Interactive articles with quizzes, for constructive reading
Typing and polymorphism
Bibliography
Websites
Abstract type (Wikipedia) : https://fr.wikipedia.org/wiki/Type_abstrait
Polymorphism (Wikipedia) : https://fr.wikipedia.org/wiki/Polymorphisme_(informatique)
Typing...
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? Log in!
![](/assets/images/logo-eti-286623ed91fa802ce039246e516e5852.png)
The Ultimate Scientific and Technical Reference