+ 1

Difference between function overloading and function overriding

1st Dec 2016, 4:51 PM
Acey Dave
Acey Dave - avatar
2 Answers
+ 3
Function overloading is two or more functions which have the same name and return type, but have different parameters. Function overriding is when the implimentation of a function from a derived class overrides the implimentation of the base's polymorphic function (virtual).
1st Dec 2016, 6:20 PM
Cohen Creber
Cohen Creber - avatar
0
The difference is that function overloading is when there are too many functions for the interpreter to handle, whereas function overriding is when there are two functions and the code inside of one is executed instead of the other e.g. that function has been written after the one that wasn't executed.
1st Dec 2016, 5:09 PM
ΣVlαdΣ
ΣVlαdΣ - avatar