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

In which way you can convert a value-type to a reference-type?

910


What are accessors?

957


What is the default value of datetime in c#?

927


What is window application in c#?

912


What is datacontract in c#?

851


What do you mean by object pooling?

954


What are the different types of assembly?

995


What is difference between encapsulation and abstraction in c#?

920


Is array a list?

827


What is an arraylist in c#?

1036


Explain static class members.

1005


What is difference between tostring() vs convert.tostring() vs (string) cast

1003


Explain the use of SN.exe

1045


Define the term immutable ?

1015


I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?

919