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...

How can you overload a method?

Answer Posted / vibhu

When you overload a method, you must change the signature
(the name, number, or type of the parameters). You are
free, as well, to change the return type, but this is
optional. Changing only the return type does not overload
the method, and creating two methods with the same
signature but differing return types generates a compile
error.

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 whitespace in c#?

1105


What is overloading with example?

932


What's the implicit name of the parameter that gets passed into the set method/property of a class?

1010


Why References are stored on heap and variables on stack?

950


What are data types examples?

956


What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?

949


What is the difference between ienumerable and enumerable?

924


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1952


What are delegate methods?

966


What are native methods?

881


List the difference between the virtual method and the abstract method?

900


What is a method signature?

1004


What is instantiating a class in c#?

1047


What is the implicit name and type of the parameter that gets passed into the class set method?

882


What is cls, cts and clr in net?

922