.Net Framework Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 370 Page Views: 

How do you overload a method?



Posted By: Avi Date: 14 October 2010 01:41:49 AM
 Answer:

By giving new method the same name as existing one and changing the list of parameters (adding, removing, changing type)


Posted By: avibtech


Date: 14 October 2010 01:41:49 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image YPHKh3
Related Questions
.Net Framework : Can we prevent a class from being inherited by another class in C#?

Can we prevent a class from being inherited by another class in C#?

Yes. The keyword "sealed" is used to prevent a class from being inherited.
Category: .Net Framework Date: 8/28/2009 6:48:43 AM
.Net Framework : What is the syntax to inherit from a class in C#?

What is the syntax to inherit from a class in C#?

Place a colon and then the name of the base class. For Example: class ChildClass : BaseClass { }
Category: .Net Framework Date: 8/28/2009 6:47:02 AM
.Net Framework : Does C# support multiple-inheritance?

Does C# support multiple-inheritance?

No
Category: .Net Framework Date: 8/28/2009 6:45:21 AM
.Net Framework : What is reflection in .Net?

What is reflection in .Net?

Discovering class information at runtime.
Category: .Net Framework Date: 8/25/2009 9:46:41 PM
.Net Framework : For what purpose Boxing is used in .Net?

For what purpose Boxing is used in .Net?

Boxing is used to convert value type to reference type
Category: .Net Framework Date: 8/25/2009 9:39:47 PM