polymorphism
🇺🇸
/ˌpɒlɪ'mɔfɪzəm/
🇬🇧
/ˌpɒlɪ'mɔ:fɪzəm/
When something can have different forms or ways of being.
Butterflies show polymorphism in their wing patterns.
蝴蝶在它們的翅膀圖案上表現出多態性。
In programming, when a function can work with different types of data.
Polymorphism lets you use the same function for different data types.
多態性允許你使用相同的函數處理不同類型的数据。