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 type of loop is a for loop?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Why it is called runtime polymorphism?
explain sub-type and sub class? atleast u have differ it into 4 points?
What are benefits of oop?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
what is different between oops and c++
How do you answer polymorphism?
What is advantage of inheritance?
What is encapsulation with example?
Why is abstraction used?
What is difference between inheritance and polymorphism?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is encapsulation in oop? Is this job good for future?
can do this job post grduate student?