How can you overload a method?

Answer Posted / chandana

Method overloading are of two types: Compile-Time and Run
Time.

The compile time overloading is achieved by providing
different method signatures. Whereas, the runtime is
achieved by using the same method names for a hierarchy of
classes, (parent and child classes using the same method
signature); In this case, behavior of the method call is
decided at run time.

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 the difference between static and private constructor in c#?

453


These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.

2501


How do I create a new form in c#?

482


What is the use of getcommandlineargs() method in c#.net?

505


Can we inherit partial class in c#?

499






Is there regular expression (regex) support available to c# developers?

520


Explain the difference between access specifier and access modifier in c#?

497


How many bits is int32?

488


What is _layout cshtml?

482


Why should you override the tostring() method?

586


What is the difference between hashtable and dictionary?

507


What is difference between method overriding and method overloading?

526


What are the properties in c#?

488


Explain what is copy constructor?

547


What is streamreader/streamwriter class?

512