What is the difference between overloading and overriding in PHP?
function overloading | function overriding |
---|---|
The OOPs feature function overloading consists same function name and the function performs various tasks according to the number of arguments. | In OOPs feature function overriding, both child and parent classes will have the same function name and a different number of arguments. |
Suggest An Answer
No suggestions Available!