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

Are arraylist faster or arrays?

964


What is ienumerator c#?

873


What is console writeline in c#?

881


What is use of a HashTable in .NET?

1154


What are the different types of delegates?

929


What is difference between overloading and short circuiting?

985


What is iqueryable?

929


What are the advantages of interface in c#?

953


Is there a way of specifying which block or loop to break out of when working with nested loops?

1010


Can we inherit a class with private constructor in c#?

1048


What is an enumerator c#?

917


What is an escape sequence in c#?

978


Why delegates are type safe?

919


what is difference between is and as operators in c#?

992


Write a sample code to write the contents to text file in c#?

911