Polymorphism in programming languages

From Citizendium
Revision as of 10:25, 7 February 2009 by imported>Howard C. Berkowitz (New page: '''Polymorphism in programming languages''' is a design technique in which a construct, or a piece of software, behave differently in different contexts. <ref name=>{{ | url = http://www....)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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. {{ | url = http://www.cs.bu.edu/teaching/cpp/polymorphism/intro/ | contribution = Introduction to Polymorphism in C++ | title = CS Teaching Material Archive | publisher = Computer Science Department, Boston University}}