+ 3

What is difference between function overloading , function overriding and function hiding?

27th Oct 2016, 8:02 PM
mirza arslan
mirza arslan - avatar
3 Antworten
27th Oct 2016, 9:09 PM
Aaron Sarkissian
Aaron Sarkissian - avatar
+ 1
Fucntion overloading is something when you have functions with same name but with different type of arguments, in terms of no or in terms of type and then at runtime it on the basis of the arguments it is decided which function is to choose. Function overriding is generally used in inhertiance in which the declaration of the function is done in the base class, but its definition is given in the sub class or the child class. These both are used in polymorphism.
3rd Nov 2016, 7:59 AM
Akshit Gupta