Answer Posted / pankaj kumar sharma
Function overloading takes place when a function is
overloaded with two or more tasks ie. same function is
having different behaviour.
It takes place when two functions have same name but
differs in argument list ie. may be the no of arg in both
fun are different or type of the arguments in argument list
are diff.
As return type of a func. does not take part in name
mangling so return type for overloaded functions may differ
or not.
eg: int fun(int arg1, int arg2)
char* fun(char* ptr1)
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is interface in oop?
What is polymorphism oop?
What is static in oop?
What is static modifier?
What polymorphism means?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
what is graphics
can inline function declare in private part of class?
What is object in oop with example?
What are the 4 main oop principles?
What is abstraction in oop with example?
What is interface? When and where is it used?
What is multilevel inheritance?
How to call a non virtual function in the derived class by using base class pointer
Get me a number puzzle game-program