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

Who introduced c#?

850


What are the types of serialization?

946


Is multiple inheritance possible in c#?

988


How do I unload an assembly?

927


What is a linq in c#?

863


What is array c#?

899


What is an array? Give the syntax for a single and multi-dimensional array?

886


How do you pronounce c#?

873


What is a ienumerator?

911


Explain polymorphism in c# with a simple example?

912


What are the 3 types of comments in c#?

931


Is c# a strongly-typed language?

978


What are virtual classes in c#?

940


What is default value of bool in c#?

941


How do I create a multilanguage?

908