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 protected in oop?
write knight tour problem which is present in datastructure
What is class and object with example?
• What are the desirable attributes for memory managment?
Is this job good for future? can do this job post grduate student?
What is object in oop with example?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
Why is abstraction used?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
Where You Can Use Interface in your Project
What language is oop?
write a programe to calculate the simple intrest and compund intrest using by function overlading
why reinterpret cast is considered dangerous?
What is use of overloading?
Can we create object of abstract class?