This switching of classes at run time is a common feature of object-oriented programming, known as polymorphism.
这种在运行时的类切换是面向对象编程的一个常见特性,称为多态性。
Pattern matching plays a central role in functional programming just as polymorphism plays a central role in object-oriented programming.
模式匹配在函数式编程中扮演了中心角色,就好像多态在面向对象编程中扮演着中心角色一样。
Type polymorphism and polymorphism in object-oriented programming: Read Wikipedia's articles about polymorphism, including subtype polymorphism.
类型多态性和面向对象编程的多态性:阅读有关多态性的Wikipedia文章,包括子类型多态性。
应用推荐