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

Why do we use stringbuilder in c#?

517


What is the use of xmlserializer?

477


What is the use of ienumerable?

457


Why it's said that writing into .NET Application Configuration Files is a Bad Idea?

529


In .Net, what is an assembly? Also explain the type of assembly.

519






Why is main static in c#?

518


What is a jagged array?

494


Can you inherit multiple classes in c#?

494


Can a class or a struct have multiple constructors?

543


Can properties be overloaded in c#?

552


What does console readline do in c#?

485


Define parsing? Explain how to parse a datetime string?

507


List down the differences between “dispose” and “finalize” methods in c#.

445


How do I declare a pure virtual function in c#?

591


What is array collection?

496