Skip to content
EntityQ332629· pop 19· linked from 164 articles

运算符重载

Sign in to save

Also known as user-defined operator, ad hoc polymorphism

type of polymorphism in some programming languages where operators have different implementations depending on their arguments

Article · 中文

在计算机程序设计中,运算符重载(英語:operator overloading)是多态的一种。这里,运算符(比如+,=或==)被当作多态函数,它们的行为随着其参数类型的不同而不同。运算符并不一定总是符号。

Abstract from DBpedia / Wikipedia · CC BY-SA