Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is function overloading?,describe it with the example.

Answers were Sorted based on User's Feedback



What is function overloading?,describe it with the example...

Answer / senthil.k,arasur

The function overloading is the same function name with
different arguments.
example:

float sum(float a,float b);
int sum(int a,int b,int c);

Is This Answer Correct ?    9 Yes 0 No

What is function overloading?,describe it with the example...

Answer / prajapati paresh

the function having the same name but different argument or
different return value is called function overloading
for e.g void sum(int a,intb);
void sum(int a,int b,int c);

Is This Answer Correct ?    9 Yes 2 No

What is function overloading?,describe it with the example...

Answer / jyoti lohani

A class having same name with the same function name but
having different parameter . the paramerter are sequence of
parameter, number of parameter, & types of parameter.
that's call function overloading.

EX:- public int fun(int a,int b);
public int fun(string a, string b)

Is This Answer Correct ?    5 Yes 2 No

What is function overloading?,describe it with the example...

Answer / mayank kumar

function overloading means the name of the function is same
but the signature is diffrent. signature means return type
as well as no. of parameters.

Is This Answer Correct ?    4 Yes 1 No

What is function overloading?,describe it with the example...

Answer / yasir

OverRIDING:
Signature remains the same, the implementing class just writes its own functionality.
int addition(int a, int b)
{
int c;
c = a * b;
return c;
}
changes to
int addition(int a, int b)
{
c = (a + b)*(a-b);
return c;
}
OverLOADING:
Signature changes, but the return type remains the same.

int addition(int a, int b);
changes to
int addition(int a, int b, int prevResult);

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More OOPS Interview Questions

How to improve object oriented design skills?

0 Answers  


function overridind means and simple program

2 Answers  


What is a template?

7 Answers  


What is the difference between a constructor and a destructor?

0 Answers  


what is the size of an empty class

12 Answers   Wipro,


In which Scenario you will go for Interface or Abstract Class?

1 Answers   InfoAxon Technologies,


which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean

2 Answers   HCL, Wipro,


What is polymorphism used for?

0 Answers  


Why do we need polymorphism in c#?

0 Answers  


what is virtual function?

3 Answers  


What is the fundamental idea of oop?

0 Answers  


Can you inherit a private class?

0 Answers  


Categories