0
What is the difference between function overriding and function overloading . Plz also specify the uses of each of these two..
2 Answers
+ 3
overriding : rewrite the function code , usefull at heritage.
overloading : write another function, with the same name, but with diferent type or quantity of parammeters. usefull when you need to repeat the same operation, but with diferent types.
0
overriding : rewrite the function code with same name and with same set of parameters also.
it generally come into action in the case of inheritance.
overloading : write another function, with the same name, but with diferent sets of parameters. usefull when you need to repeat the same operation, but with diferent types of data.