Encyclosphere.org ENCYCLOREADER
  supported by EncyclosphereKSF

Polymorphism in programming languages

From Citizendium - Reading time: 1 min

This article is a stub and thus not approved.
Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
External Links  [?]
Citable Version  [?]
 
This editable Main Article is under development and subject to a disclaimer.

Polymorphism in programming languages is a design technique in which a construct, or a piece of software, behave differently in different contexts. [1]

Minimally, it can indicate a standard operator indicates different context. In

A + B = C

invokes different operation if A, B, and C are integer, floating point, or string variables.

C++[edit]

C++ makes extensive use of polymorphism, usually called overloading, with a technique called a virtual method.

References[edit]

  1. , Introduction to Polymorphism in C++, CS Teaching Material Archive, Computer Science Department, Boston University

Licensed under CC BY-SA 3.0 | Source: https://citizendium.org/wiki/Polymorphism_in_programming_languages
15 views | Status: cached on January 16 2024 02:28:13
↧ Download this article as ZWI file
Encyclosphere.org EncycloReader is supported by the EncyclosphereKSF