Computer Science, asked by Anonymous, 1 year ago

Explain function overloading.

Answers

Answered by maitri46
4
Function overloading (also method overloading) is a programming concept that allows programmers to define two or more functionswith the same name and in the same scope. Eachfunction has a unique signature (or header), which is derived from:function/procedure name. number of arguments. arguments' type.
Answered by nain31
5
ANSWER..

FUNCTION OVERLOADING REFERS TO MANY FUNCTION HAVING SAME NAME BUT ARE IN DIFFERENT IN THE SOME WAYS LIKE THE ARGUEMENTS OR RETURN TYPE.

EX.

public void hello(int n)
{
n=n+1;
}
public void hello(int p,int q)
{
p=p+q;
}
Similar questions