Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What's the difference between method overriding and method overloading?

user-image
Question added by Deleted user
Date Posted: 2015/10/07
Deleted user
by Deleted user

In Overriding methods it will create two or more methods with same name and same parameter in different classes.while Overloading it will create more then one method with same name but different parameter in same class.

Mohamed saleh
by Mohamed saleh , PHP Laravel Developer , babeleye

Overriding: means that we inherit  the method but with new implementation.

Overloading: use the same method name with different signature (return type , parameters number , parameters type)

More Questions Like This