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 the oops and benefits of oops programming?
What does and I oop mean?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is multilevel inheritance in oop?
Why is encapsulation used?
What is constructor overloading in oop?
What is abstract class in oops?
Why do we need polymorphism in c#?
what are the different types of qualifier in java?
What is a null tree?
Can we override main method?
What is overloading in oop?
What is class and object with example?
What is the problem with multiple inheritance?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).