Polymorphism in programming languages: Difference between revisions

From Citizendium
Jump to navigation Jump to search
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....)
 
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''Polymorphism in programming languages''' is a design technique in which a construct, or a piece of software, behave differently in different contexts. <ref name=>{{
{{subpages}}
'''Polymorphism in programming languages''' is a design technique in which a construct, or a piece of software, behave differently in different contexts. <ref name=>{{citation
  | url = http://www.cs.bu.edu/teaching/cpp/polymorphism/intro/
  | url = http://www.cs.bu.edu/teaching/cpp/polymorphism/intro/
  | contribution = Introduction to Polymorphism in C++
  | contribution = Introduction to Polymorphism in C++
Line 11: Line 12:
C++ makes extensive use of polymorphism, usually called '''overloading''', with a technique called a ''virtual method''.
C++ makes extensive use of polymorphism, usually called '''overloading''', with a technique called a ''virtual method''.
==References==
==References==
{{reflist}}
{{reflist}}[[Category:Suggestion Bot Tag]]

Latest revision as of 16:00, 5 October 2024

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++

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