Polymorphism in programming languages

From Citizendium, the Citizens' Compendium

Jump to: navigation, search


This article is a stub and thus not approved.
Main Article
Talk
Related Articles  [?]
Bibliography  [?]
External Links  [?]
 
This is a draft article, under development and not meant to be cited but you can help to improve it. These unapproved articles are 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++

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

References

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