A type of polymorphism where different functions with the same name or different implementations of an operator are invoked based on the data types of the parameters passed. DO NOT USE FOR OVERLOADING IN PHP; THE MEANING OF THAT TERM IN PHP IS UNRELATED.
The terms overloading and overloaded may refer to:
- Constructor and method overloading, a type of polymorphism where different functions with the same name are invoked based on the data types of the parameters passed.
- Operator overloading, a form of overloading where the action being overloaded is an operator, such as
+
or-
. - In PHP, the term ‘overloading’ refers to property and method dispatch performed dynamically by user code. This is a misnomer that has nothing to do with the other meanings.
Don't confuse it with overriding
Related tags: constructor-overloadingmethod-overloadingoperator-overloading