出典:Wikipedia
出典:『Wikipedia』 (2011/08/02 10:47 UTC 版)
Subtype polymorphism, almost universally called just polymorphism in the context of object-oriented programming, is the ability to create a variable, a function, or an object that has more than one form. The word derives from the Greek "πολυμορφισμός" meaning "having multiple forms". This article is an accessible introduction to the topic, which restricts attention to the object-oriented paradigm. In principle, polymorphism can however arise in other computing contexts and it shares important similarities to the concept of degeneracy in biology.