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 overloading and how can this be done ?

Answer Posted / mahesh babu ummaneni

overloading is nothing but method name is same but perameters is different.
for example
class overloading
{
public void add(int x)
{
console.writeline("sum");
}
public void add(int x,int y)
{
console.writeline("THE SUM IS:"+(x+y));
}
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of delegates in c#?

893


What is null propagation c#?

1017


Why do we write system in c#?

917


Do while loops yes or no c#?

973


What debugging tools come with the .NET ssSDK?

1245


What is the meaning of MSIL?

1262


Can you have parameters for static constructors?

950


What is a generic in c#?

927


Is c# used for frontend or backend?

1052


Can you see a loop recorder?

867


Define delay signing?

931


Does c# support #define for defining global constants?

1029


Explain the difference between passing parameters by value and passing parameters by reference with an example?

931


What is serialization and deserialization in c# with example?

886


Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?

958