Polymorphism in C#

Polymorphism means having more than one form.  
Overloading and overriding are used to implement polymorphism. 

Polymorphism Examples
  1. Method Overloading
  2. Method Overriding

There are two type of Polymorphism 
1. Compile time polymorphism (Early binding or static binding) 

Examples: overloaded methods, overloaded operators and overridden methods that are called directly by using derived objects.
2. Run time polymorphism (Late binding or dynamic binding)  

Example: overridden methods that are called using base class object.
 

Comments

Popular posts from this blog

Page Life Cycle in ASP.NET

Send Email using Gmail SMTP server - ASP.NET

MVC Request Execution Stages - Life Cycle

Introduction to ASP.Net MVC

Print Function By JavaScript

Auto Refresh .aspx page - ASP.NET

Auto Sequence Number in Grid Control with Paging

ASP.NET MVC Version History

How to Edit More than 200 Rows in SQL Server 2008