How?s method overriding different from overloading?

Answer Posted / chinju

overriding is used for redefining a method in diferent ways.
overloading depends on the method signature not prototype.
method signature
1.no: of parameters or type of parameters or sequance of
parameter
not the return type

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which programming language is best for desktop applications?

461


Explain the differences between static, void and public in c#?

529


What's your approach to fetch static data in your windows form application?

510


What are annotations in c#?

525


Explain publishers and subscribers in events.

543






Define strong name in c#?

523


What is marshalling in c#?

486


What is int tryparse in c#?

524


Define a partial class?

506


Explain the difference between passing parameters by value and passing parameters by reference with an example?

505


How can I get the ascii code for a character in c#?

570


When should I use static in C#?

560


What is yield return in c#?

495


Can a constructor be static in c#?

523


What is the use of tryparse in c#?

466