Article | REF: H3320 V1

Typing in programming language

Authors: Emmanuel CHAILLOUX, Romain DEMANGEON, Michel MAUNY

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

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

Already subscribed? Log in!

Automatically translated using artificial intelligence technology (Note that only the original version is binding) > find out more.

    A  |  A

    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.

    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!


    The Ultimate Scientific and Technical Reference

    A Comprehensive Knowledge Base, with over 1,200 authors and 100 scientific advisors
    + More than 10,000 articles and 1,000 how-to sheets, over 800 new or updated articles every year
    From design to prototyping, right through to industrialization, the reference for securing the development of your industrial projects

    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

    Subscribe now!

    Ongoing reading
    Typing and polymorphism