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's the difference between class and object?

1044


How do I create a dbml file?

1036


Can we create extension method for interface?

948


How the versioning applies to Assemblies or can you explain version numbers?

1079


How does dependency injection work c#?

992


Can an exception be thrown from a catch block?

1065


Can we inherit sealed class in c#?

929


What do you mean by abstract class in c#?

1022


What is the purpose of namespace?

924


What are the advantages of using assemble language programming?

980


What is difference between int and int in c#?

1013


Why do we Need of static class in c#?

1107


Explain the OOPS concept in C#?

1020


What are the variables in c#?

988


What is the use of delegate?

1020