1.

Difference Between Overloading And Overriding?

Answer»

Overloading is static binding WHEREAS OVERRIDING is DYNAMIC binding. Overloading is nothing but the same method with DIFFERENT arguments , and it may or may not return the same value in the same class itself.
Overriding is the same method names with same arguments and return types associates with the class and its CHILD class.

Overloading is static binding whereas Overriding is dynamic binding. Overloading is nothing but the same method with different arguments , and it may or may not return the same value in the same class itself.
Overriding is the same method names with same arguments and return types associates with the class and its child class.



Discussion

No Comment Found