
polymorphism
词源
源自希腊语 'poly-' (多) + 'morphē' (形态) + '-ism' (表示状态的后缀),1839年首次用于生物学领域,20世纪中期引入计算机科学。
noun
❶ 多态性,指生物学中同一物种存在多种不同形态或类型的现象,如蝴蝶的不同颜色变种。
“The polymorphism in butterflies allows some to blend into their surroundings better than others.”
(蝴蝶的多态性使得某些个体比其他个体更容易融入周围环境。)
“Genetic polymorphism is common in many animal species.”
(遗传多态性在许多动物物种中很常见。)
❶ 多态,计算机编程中同一接口或方法在不同情况下表现出不同行为的特性,是面向对象编程的重要概念。
“Polymorphism allows a single function to handle different data types.”
(多态允许单个函数处理不同的数据类型。)
“In Java, method overriding is a way to achieve polymorphism.”
(在Java中,方法重写是实现多态的一种方式。)
常见短语
genetic polymorphism — 遗传多态性,指同一群体中存在两种或多种基因型的现象,常见于自然种群中。
“The genetic polymorphism in this species helps it survive in changing climates.”
(该物种的遗传多态性帮助它在变化的气候中生存。)
runtime polymorphism — 运行时多态,编程中指在程序运行时才确定调用哪个方法的多态实现方式。
“Runtime polymorphism is achieved through method overriding in Java.”
(在Java中通过方法重写实现运行时多态。)