0
Difference between overloading and overriding ????????
3 Antworten
+ 3
There is a big difference. When you change your mother class methods in your daughter class. Or in simple technical word method overriding mean changing behavior of the method.It is called overriding.
Overloading is a behavior of oop language. When you rewrite a function with same name but with different number of parameters in a class. it is called overloading. Remember PHP is not 100% oop language. if you use oop outside of class it will through an error. Anyway, happy coding.
+ 3
here is an example that you may want to check to see difference or understand the meanings of overriding and overloading https://code.sololearn.com/c0awDMpDLukF/?ref=app
+ 1
.nothing, it just created to confuse you