aspdotnet-suresh offers articles and tutorials,csharp dot net, articles and tutorials,VB.NET Articles,Gridview articles,code examples of 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

C# - What is Difference between Overriding and Overloading with Example

Sep 22, 2013

Here I will explain difference between overloading and overriding in with example or overloading vs. overriding with example. 



Polymorphism means many forms (ability to take more than one form). In Polymorphism poly means “multiple” and morph means “forms” so polymorphism means many forms.

In polymorphism we will declare methods with same name and different parameters in same class or methods with same name and same parameters in different classes. Polymorphism has ability to provide different implementation of methods that are implemented with same name.

In Polymorphism we have 2 different types those are

       -  Overloading (Called as Early Binding or Compile Time Polymorphism or static binding)

       -  Overriding (Called as Late Binding or Run Time Polymorphism or dynamic binding)


Overloading means we will declare methods with same name but different signatures because of this we will perform different tasks with same method name. This overloading also called as compile time polymorphism or early binding.

Method Overloading or compile time polymorphism means same method names with different signatures (different parameters)

For more details check this link polymorphism in c#


Overriding also called as run time polymorphism or late binding or dynamic polymorphism. Method overriding or run time polymorphism means same method names with same signatures.

In this method overriding or run time polymorphism we can override a method in base class by creating similar function in derived class this can be achieved by using inheritance principle and using “virtual & override” keywords.

For more details check this link polymorphism in c#

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest,, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email


Alexssandrolima Dutra said...

Muito bom os conceitos, de polimorfismo....

Chaitanya B said...

simply superb

Anonymous said...


Fahad Noor said...
This comment has been removed by the author.
Fahad Noor said...

Nice Friend Thank ya sou much short, quick and help full :-)

Kedar Kulkarni said...

Awesome thanks..!

Anonymous said...

super machee

Anonymous said...

Nice One

Anonymous said...

it is very good.
if it has one emample it would be superb

meharoof kk said...

good one

Anonymous said...

Really helpful site for begineers , Thanks Suresh :)

Nabeel Ahmed said...

Nice one ...!
but lake of example otherwise so good dear.

Balaji Kamal said...

Great. Thank u

iqra bhat said...

Awsum def

Anonymous said...

Hi , Can you please explain when to use Method overriding with a real time example which u used in any project.

Anonymous said...


achush said...

Thank u

Prabuddha Dissanayake said...

Very Good

Give your Valuable Comments

Other Related Posts

© 2015 All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.