what is function over loading?

Answers were Sorted based on User's Feedback



what is function over loading?..

Answer / dibyakishore pattanaik

Same function name can be used for different purpose
depending upon three factors i.e number of arguments, type
of arguments and order of arguments in the function
declaration. This is resolved at compile time by the
compiler.

Is This Answer Correct ?    24 Yes 0 No

what is function over loading?..

Answer / abhishek singh

Same Function Name with Diffrent Parameters(argument)
called function over loading.

Ex-1
public Functin Sqlquery(by val user id as string,by val
passowrd as string)

public Functin Sqlquery(by val From as string,by val To as
string)

Here u can see same name of function with different
parameters

Thanks & Regards
Abhishek singh
09709109796
abhishek_singh156@yahoo.com

Is This Answer Correct ?    2 Yes 0 No

what is function over loading?..

Answer / anjana

FUNCTION OVER LOADING:
*two or more function having same name they are said to be function over loading

Is This Answer Correct ?    1 Yes 0 No

what is function over loading?..

Answer / prabhakar

defining a function with a same name with differ in number of arguments r return type r tpe of arguments in one class is called funstion overloading.
for example
class base
{
public:
fun(int a,int b);
fun(char a,char b);
}
above two functions are diffrer in type of arguments.

Is This Answer Correct ?    1 Yes 0 No

what is function over loading?..

Answer / deepika sharma

when two functions with same name is used in java program
then this method is called as function overloading

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More OOPS Interview Questions

Write A Program using Single and Multiple Inheritance.

1 Answers  


What are oops functions?

0 Answers  


What is the main difference between C++ and Java

11 Answers   TCS,


What is the difference between declaration and definition?

20 Answers   IBS,


Why it is called runtime polymorphism?

0 Answers  






what is different between oops and c++

0 Answers   IIT,


what is overloading

3 Answers   MindCracker,


write knight tour problem which is present in datastructure

0 Answers  


Program to check whether a word is the first word of the sentence.

1 Answers  


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

0 Answers  


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

0 Answers  


What is difference between function overloading and overriding?

1 Answers   emc2,


Categories