
好词典

源自希腊语polymorphos(poly- '多' + morphē '形态'),17世纪通过法语polymorphe进入英语。
❶ 指某物具有多种形态或形式,常用于生物学描述同一物种的不同形态,或计算机科学中同一函数处理不同类型数据的能力。
“The butterfly exhibits polymorphic coloration to blend with different environments.”
(这种蝴蝶表现出多态性颜色变化,以适应不同环境。)
“Polymorphic viruses can change their code to avoid detection by antivirus software.”
(多态病毒能改变自身代码以躲避杀毒软件的检测。)
polymorphic behavior — 指在编程中对象根据上下文表现出不同行为的能力,是面向对象编程的核心特性之一。
“The polymorphic behavior of the 'draw' method allows it to render circles, squares, and triangles differently.”
('draw'方法的多态行为使其能以不同方式绘制圆形、方形和三角形。)