What is the difference between Overloading and Overriding ?
What is the difference between Overloading and Overriding ?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
Method Overloading :
{i}Used to increase the readability of the program.
{ii}It may or may not need inheritance in Method Overloading.
{iii}Overloading is a compile-time concept.
{iv}In case of method overloading, parameter must be different.
Method Overriding:
{i}Method Overriding means method of base class is re-defined in the derived class having same signature.
{ii}It always requires inheritance in Method Overriding.
{iii}Overriding is a run-time concept.
{iv}In case of method overriding, parameter must be same.