what is overloading & overriding

Answer Posted / vishal shah

Overloading is simply the 2 or more than two functions with
different signatures.

Overriding is related with Polymorphism, where virtual
function declared in base class is override in the derived
class with the same name. And compiler during runtime
decide which function to be called based on the object
(Base Class or Derived Class) used to call this function.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between property and variable in c#?

637


Does c# support multiple inheritance (mi)?

706


What is data binding with example?

705


Is typeof c#?

722


What is extension method in c# and how to use them?

661


If you want to convert a base type to a derived type, what type of conversion do you use?

665


Which class comes after the SortedList class?

740


Can a class be protected in c#?

655


What is dapper in c#?

625


How do you prevent a method from being overridden in c#?

643


What is nameof c#?

679


what is the equivalent to regsvr32 and regsvr32 /u a file in .net development?

743


What is difference between function and method in c#?

626


What are access modifiers used for?

794


How to prevent the error while updating ui control from another thread?

696