📜  oop 中的多态性 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:59.380000             🧑  作者: Mango

代码示例1
here's a more formally written answer.

Polymorphism is the method in an object-oriented programming language
that performs different things as per the object's class, which calls it.

With Polymorphism, a message is sent to multiple class objects, and every
object responds appropriately according to the properties of the class.