what is function over loading?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
what about you? wahat is your object? introduce your self?
1 Answers Ajmal Perfumes, TCS,
What are functions in oop?
What is encapsulation in oops?
What is abstraction?
What is polymorphism in oops with example?
What is the difference between a mixin and inheritance?
what is the difference between inter class and abstract class...?
Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.
What is the main feature of oop?
Name an advantage of array over linked list?
24 Answers GML, IBM, Software Solutions,
What is the diamond problem in inheritance?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?