Jump to content

User:O11c/Polymorphism

From Wikipedia, the free encyclopedia

Polymorphism is the ability of a programming language to provide different (but sometimes similar) semantics for the same syntax, depending on the types of the operands.

There are two kinds of polymorphism: static polymorphism and dynamic polymorphism.

Static Polymorphism

[edit]
templates
function overloading
overloaded builtins

Dynamic Polymorphism

[edit]
virtual methods
Java methods are virtual by default
C++ methods are only virtual if explicitly made such.