You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -442,7 +442,7 @@ class miniCar implements Car, Vehicle
442
442
443
443
### Polymorphism
444
444
445
-
- Polymorphism represent more than one form, it can be achieved using method overloading and method overriding. This is an object oriented concept where same function can be used for different purposes. For example function name will remain same but it make take different number of arguments (overloading) and can do different task (overriding).
445
+
- Polymorphism represent more than one form, it can be achieved using method overloading and method overriding. This is an object oriented concept where same function can be used for different purposes. For example function name will remain same but it may take different number of arguments (overloading) and can do different task (overriding).
446
446
- PHP doesn't support traditional method overloading, however one way you might be able to achieve what you want, would be to make use of the __call magic method.
0 commit comments