1.

What is the difference between Method overriding and Method overloading?

Answer»
Method OverloadingMethod Overriding
It is the concept where we DEFINE two or more methods by the same name but with DIFFERENT signatures.In method overriding we define two or more identical methods which have the same name and signatures.
The binding of the method is DONE at compile time.The binding of the method is done at run time.
There are no class restrictions i.e. it can be ACHIEVED in the same or different classes.There are class restrictions in it i.e. it can only be achieved in different classes.


Discussion

No Comment Found