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

What is the use of unnamed namespaces in OOPS? The only advantage I know is that they dont need the scope resolution operator while accessing them. I want to know some other advantages of unnamed namespaces...

2 Answers  


What is multilevel inheritance explain with example?

0 Answers  


write a progra in c++ using class & object to find out wheather a given no. is prim or not.

2 Answers  


There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

4 Answers  


What is the concept of object oriented program?

6 Answers  






Explain virtual inheritance?

0 Answers  


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

0 Answers  


i have to create a view in SQL as like in ORACLE DATA EXPRESS EDITION

2 Answers   CTS,


Should you protect the global data in threads? Why or why not?

2 Answers   IBM,


What is the expansion of OOPS?

24 Answers   TCS,


How can you overcome the diamond problem in inheritance?

0 Answers   NIIT,


why we call c++ is object oriented lanaguage

7 Answers   HCL,


Categories