Different between Function overloading and Function overriding
Function overloading | Function overriding |
Parameter must be different | Parameter must be same |
It occurs with the same class | It occurs different parent class and child class |
Inheritance is not involved | Inheritance is involved |
Return type does not matter | Return type must be same |
One function does not hide the another. | Child function hide parent function. |