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 cts, clr?

888


What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

1003


What is deferred execution in c#?

992


What are extensions in c#?

1031


How do I do implement a trace?

1171


Which is faster abstract class or interface in c#?

1037


What is threading in c# with example?

991


What is thread life cycle in c#?

1026


Explain the difference between a sub and a function in c#.

1082


What is a function c#?

1014


Name the control which cannot be placed in mdi?

940


What is parallel programming in c#?

983


Int map to which .net types?

1083


Why do we use lambda expression in c#?

993


What is the use of inheritance in c#?

952